/* ============================================
   DARUNYX — Override styles.css variables
   Harmonise le theme bleu/blanc/rouge
   Charge APRES styles.css
   ============================================ */

:root {
  /* Accent colors — blue palette */
  --accent-primary: #3b82f6;
  --accent-secondary: #ef4444;
  --accent-hover: #60a5fa;
  --accent-muted: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-gold: #3b82f6;

  /* Backgrounds */
  --bg-primary: #050a18;
  --bg-secondary: #0a1228;

  /* Borders */
  --border-accent: rgba(59, 130, 246, 0.3);

  /* Warning — was cyan-tinted, now blue */
  --warning-muted: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.2);
}

/* Gradient orbs — blue/red instead of cyan */
.orb-1 {
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%) !important;
}

.orb-2 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%) !important;
}

/* Logo accent — tricolor gradient on NYX */
.nav-logo {
  background: linear-gradient(135deg, #3b82f6, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo .logo-accent {
  background: linear-gradient(135deg, #3b82f6, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid overlay — blue tint */
.grid-overlay {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px) !important;
}

/* ============================================
   DISCLAIMER — Style Darunyx bleu/blanc/rouge
   ============================================ */
.darunyx-disclaimer {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(239, 68, 68, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.darunyx-disclaimer-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #ffffff 50%, #ef4444 100%);
}

.darunyx-disclaimer-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  padding-top: 14px;
}

.darunyx-disclaimer-content svg {
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 1px;
}

.darunyx-disclaimer-content p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.darunyx-disclaimer-content strong {
  color: #f1f5f9;
}

.darunyx-disclaimer-content a {
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.darunyx-disclaimer-content a:hover {
  color: #60a5fa;
}

/* ============================================
   MOBILE NAV — Override styles.css sidebar system
   ============================================ */

/* Kill the sidebar / mobile-header system from styles.css */
.sidebar,
.sidebar-overlay,
.mobile-header {
  display: none !important;
}

/* Cancel sidebar layout push */
.main-content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Force nav-links visible on desktop (overrides styles.css display:none!important) */
.nav-links {
  display: flex !important;
}

/* All nav links — white text everywhere (desktop + mobile) */
.nav-links a {
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9;
}

.nav-links a.active,
.nav-links a.tab-link.active {
  color: #3b82f6 !important;
  -webkit-text-fill-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

/* ---------- "★ Premium" link (on hockey/baseball navbars) ---------- */
a[href="premium.html"].tab-link-premium {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  color: #0a0a0a !important;
  font-weight: 800 !important;
  padding: 8px 22px !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  text-shadow: none !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5), 0 0 4px rgba(245, 158, 11, 0.3);
  -webkit-text-fill-color: #0a0a0a;
}

a[href="premium.html"].tab-link-premium:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.7), 0 4px 20px rgba(245, 158, 11, 0.4);
}

/* ---------- Premium page internal tabs (Prono, Matchs, Buteurs…) — keep readable ---------- */
.tab-link.tab-link-premium {
  background: transparent !important;
  color: var(--text-primary, #f1f5f9) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  -webkit-text-fill-color: var(--text-primary, #f1f5f9);
}

.tab-link.tab-link-premium.active {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.1) !important;
  -webkit-text-fill-color: #3b82f6;
}

/* ---------- Premium tabs + Combo subtabs — fix mobile overlap, wrap on 2 lines ---------- */
@media (max-width: 768px) {
  .premium-tabs,
  .combo-subtabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px !important;
    padding: 6px !important;
    justify-content: center;
  }

  .premium-tab,
  .combo-subtab {
    flex-shrink: 0 !important;
    width: auto !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}

/* ---------- Mobile <=768px ---------- */
@media (max-width: 768px) {
  /* Show hamburger */
  .nav-toggle {
    display: flex !important;
  }

  /* Mobile menu — slide-in from right
     NOTE: #navbar has backdrop-filter which creates a containing block,
     so position:fixed is relative to the navbar, not the viewport.
     Use top:100% (below navbar) + explicit height instead of bottom:0. */
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 100%;
    left: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    bottom: auto;
    background: rgba(5, 10, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    z-index: 5000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  /* Open state — slide in */
  .nav-links.open {
    transform: translateX(0) !important;
  }

  /* Touch-friendly links — all white text in mobile menu */
  .nav-links a {
    padding: 14px 20px;
    font-size: 1rem;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9;
  }

  .nav-links a.active,
  .nav-links a.tab-link.active {
    color: #3b82f6 !important;
    -webkit-text-fill-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
  }
}
