/* =========================================================
   ViperFlame Network — Stile base condiviso
   Contiene: variabili, reset, navbar, hero/logo, card,
   badge IP, pulsante Discord e footer.
   I percorsi url() sono relativi a questo file (/assets/css/),
   quindi funzionano da qualsiasi livello di cartella.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #140b07;
  --bg-elevated: #1c110a;
  --bg-card: #24140b;
  --border: #3d2113;
  --text: #f7ece0;
  --text-secondary: #ccab93;
  --text-tertiary: #8f6a54;

  --flame-1: #F2791D;
  --flame-2: #E4491B;
  --flame-3: #C6281B;
  --flame-dark: #5C1408;
  --gold: #FFC24B;

  --store-accent: #22D3B5;
  --store-accent-dark: #0E8E78;
  --store-accent-light: #6FF0DA;

  --diamond: #4FC3F7;

  --radius: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(8px);
  margin-top: 8px;
  padding: 12px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-items {
  display: flex;
  justify-content: space-between;
  gap: 0;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  min-width: 56px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(242, 121, 29, 0.12);
  border-color: rgba(242, 121, 29, 0.3);
  color: var(--text);
  transform: translateY(-2px);
}

.nav-item.active {
  background: rgba(242, 121, 29, 0.2);
  border-color: var(--flame-1);
  color: var(--text);
}

.nav-item.store {
  border-color: rgba(34, 211, 181, 0.35);
  color: var(--store-accent);
}

.nav-item.store:hover,
.nav-item.store.active {
  background: rgba(34, 211, 181, 0.16);
  border-color: var(--store-accent);
  color: var(--store-accent);
}

.nav-icon { width: 18px; height: 18px; opacity: 0.8; }
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { opacity: 1; }

/* ===== HERO / LOGO ===== */
.hero {
  position: relative;
  margin: -35px 0 -35px;
  padding: 0 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 11, 7, 0) 0%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(228, 73, 27, 0.20) 0%, rgba(228, 73, 27, 0) 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F2791D' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.hero-logo {
  height: 350px;
  width: auto;
  margin: 0 auto 2px;
  filter: drop-shadow(0 4px 12px rgba(230, 70, 20, 0.4));
}

/* ===== CONTENT ===== */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.2s ease;
  animation: fadeUp 0.5s ease both;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.card-title svg { width: 18px; height: 18px; opacity: 0.8; }

/* ===== BADGE IP ===== */
.ip-float {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(242, 121, 29, 0.32);
  background: linear-gradient(135deg, rgba(242, 121, 29, 0.16) 0%, rgba(20, 11, 7, 0.92) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(20, 11, 7, 0.35);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.ip-float.full-width {
  width: 100%;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 16px;
}

.ip-float:hover { border-color: var(--flame-1); box-shadow: 0 12px 32px rgba(242, 121, 29, 0.28); }
.ip-float.copied { border-color: var(--gold); }

.ip-float img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.ip-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  align-items: center;
  text-align: center;
}

.ip-float-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); }
.ip-float-ip { font-size: 18px; font-weight: 700; color: var(--text); }
.ip-float-version { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.ip-float.copied .ip-float-ip { color: var(--gold); }

.card:hover {
  border-color: var(--flame-1);
  box-shadow: 0 0 0 1px rgba(242, 121, 29, 0.15);
}

/* ===== PROMO STORE (home, vota, ...) ===== */
.promo-row {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}

.store-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 181, 0.18) 0%, rgba(14, 142, 120, 0.12) 100%);
  border: 1px solid rgba(34, 211, 181, 0.42);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s ease both;
  box-shadow: 0 16px 40px rgba(8, 24, 20, 0.26);
  min-height: 100%;
}

/* onda decorativa: il percorso è relativo a questo file (/assets/css/) */
.store-promo::before {
  content: "";
  position: absolute;
  inset: -40px -24px auto -24px;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(34, 211, 181, 0.28) 0%, rgba(34, 211, 181, 0.10) 48%, transparent 100%),
    url("../../wave.svg") center top / cover no-repeat;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.2);
}

.store-promo::after {
  content: "";
  position: absolute;
  inset: auto -36px -36px -36px;
  height: 84px;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 181, 0.16) 100%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.store-promo > * { position: relative; z-index: 1; }

.store-promo:hover {
  border-color: var(--store-accent);
  box-shadow: 0 0 0 1px rgba(34, 211, 181, 0.25), 0 18px 48px rgba(8, 24, 20, 0.32);
}

.store-promo-left { display: flex; align-items: center; gap: 12px; }

.store-promo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 211, 181, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-promo-icon svg { width: 20px; height: 20px; stroke: var(--store-accent); }
.store-promo h3 { font-size: 15px; font-weight: 700; color: var(--store-accent); margin-bottom: 2px; }
.store-promo p { font-size: 12px; color: var(--text-secondary); }

.store-promo-btn {
  background: var(--store-accent);
  color: #06251f;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.store-promo-btn:hover { background: #3EE9CB; transform: translateY(-1px); }

@media (max-width: 760px) {
  .promo-row { grid-template-columns: 1fr; }
}

/* ===== CARD DISCORD ===== */
.discord-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(107, 91, 255, 0.16) 0%, rgba(74, 52, 255, 0.12) 100%);
  border: 1px solid rgba(107, 91, 255, 0.35);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(30, 20, 63, 0.24);
  min-height: 100%;
}

.discord-card:hover { border-color: #7c6cff; transform: translateY(-1px); }
.discord-card-left { display: flex; align-items: center; gap: 12px; }

.discord-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(107, 91, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-card-icon svg { width: 20px; height: 20px; fill: #9b8cff; }
.discord-card h3 { font-size: 15px; font-weight: 700; color: #cfc7ff; margin-bottom: 2px; }
.discord-card p { font-size: 12px; color: var(--text-secondary); }

.discord-card-btn {
  background: linear-gradient(135deg, #6b5bff 0%, #4a34ff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Pulsante Discord gigante (pagine Regole / Supporto) */
.discord-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 8px auto 0;
  padding: 22px 38px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6b5bff 0%, #4a34ff 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(90, 60, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-big:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 46px rgba(90, 60, 255, 0.62); }
.discord-big svg { width: 30px; height: 30px; fill: #fff; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--flame-3); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 640px) {
  .ip-float-label { display: none; }
  .hero-logo { height: 220px; }
  .discord-big { font-size: 16px; padding: 18px 24px; }
  .store-promo { flex-direction: column; align-items: flex-start; }
  .discord-card { flex-direction: column; align-items: flex-start; }
}
