/* ══════════════════════════════════════════
   GLOBAL STYLES — DEMONS RACING
   Variables, Navigation, Footer, Shared
   ══════════════════════════════════════════ */

:root {
  --bg-deep: #070e1d;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-panel: #0c1322;
  --bg-hover: #191f2f;
  --red: #b91c1c;
  --red-dim: #b91c1c;
  --red-glow: rgba(185, 28, 28, 0.18);
  --orange: #991b1b;
  --primary: #991b1b;
  --text-primary: #dce2f7;
  --text-secondary: #a0a8c0;
  --text-muted: #5b6380;
  --border: rgba(91, 64, 59, 0.25);
  --border-red: rgba(185, 28, 28, 0.4);
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', 'Barlow', sans-serif;
  --font-tech: 'JetBrains Mono', monospace;
}

/* ─── MATERIAL ICONS ─── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ══════════════════════════════════════════
   TOPBAR / NAVIGATION
   ══════════════════════════════════════════ */

.desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 14, 29, .90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 64, 59, .3);
  box-shadow: 0 0 15px rgba(185, 28, 28, .08);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .6rem .9rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  color: var(--red);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.nav-icon {
  font-size: .8rem;
  opacity: .8;
  font-weight: 700;
  width: 18px;
  display: flex;
  justify-content: center;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-actions a {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-actions a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid rgba(91, 64, 59, 0.1);
  padding: 3rem 1.5rem;
  text-align: center;
  background: #070e1d;
}

.site-footer p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(227, 190, 183, 0.6);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 0;
}

/* ══════════════════════════════════════════
   MOBILE BOTTOM NAV
   ══════════════════════════════════════════ */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }

  header {
    display: none !important;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-logo {
    margin: auto;
  }

  body {
    padding-bottom: 80px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(7, 14, 29, .90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(185, 28, 28, .18);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
  }

  .mobile-bottom-nav a {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 11px;
    gap: 3px;
    transition: .25s;
  }

  .mobile-bottom-nav a:hover {
    color: #dce2f7;
  }

  .mobile-bottom-nav a .material-symbols-outlined {
    font-size: 22px;
  }

  .mobile-bottom-nav a.active {
    color: #b91c1c;
    text-shadow: 0 0 10px rgba(185, 28, 28, .8);
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
