/* ═══════════════════════════════════════════════════════════
   Bein Match — Header & Footer Mode Refinements
   Inspired by modern football streaming aesthetics
═══════════════════════════════════════════════════════════ */

/* ── DARK MODE HEADER ─────────────────────────────────── */
body.Night .SiteHeader {
  background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0d1321 100%) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(16, 185, 129, 0.15) !important;
}

body.Night .SiteHeader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body.Night .SiteHeader > .container {
  position: relative;
  z-index: 1;
}

body.Night .SiteHeader .site-logo {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

body.Night .site-des span.site-name,
body.Night .site-des span.site-url {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

body.Night .nav-menu .nav ul.LinksList-Nav li a {
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

body.Night .nav-menu .nav ul.LinksList-Nav li a:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981 !important;
  transform: translateY(-1px);
}

body.Night .nav-menu .nav ul.SocialMedia-Nav a,
body.Night .dark-mode label {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

body.Night .nav-menu .nav ul.SocialMedia-Nav a:hover,
body.Night .dark-mode label:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

/* ── LIGHT MODE HEADER ────────────────────────────────── */
body:not(.Night) .SiteHeader {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%) !important;
  border-bottom: 1px solid #d1d9e6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

body:not(.Night) .SiteHeader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body:not(.Night) .SiteHeader > .container {
  position: relative;
  z-index: 1;
}

body:not(.Night) .SiteHeader .site-logo {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #c7d8ea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body:not(.Night) .site-des span.site-name,
body:not(.Night) .site-des span.site-url {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #c7d8ea;
  color: #1a1a1a !important;
}

body:not(.Night) .site-des span.site-slug {
  color: #0d5f9e !important;
}

body:not(.Night) .nav-menu .nav ul.LinksList-Nav li a {
  color: #1a1a1a !important;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #c7d8ea;
  border-radius: 8px;
  padding: 0 12px;
  transition: all 0.2s ease;
}

body:not(.Night) .nav-menu .nav ul.LinksList-Nav li a:hover {
  background: #ffffff;
  border-color: #10b981;
  color: #059669 !important;
  transform: translateY(-1px);
}

body:not(.Night) .nav-menu .nav ul.SocialMedia-Nav a,
body:not(.Night) .dark-mode label {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #c7d8ea;
  border-radius: 8px;
  transition: all 0.2s ease;
}

body:not(.Night) .nav-menu .nav ul.SocialMedia-Nav a:hover,
body:not(.Night) .dark-mode label:hover {
  background: #ffffff;
  border-color: #10b981;
  transform: translateY(-1px);
}

body:not(.Night) .nav-menu .nav ul.SocialMedia-Nav svg.icon,
body:not(.Night) .dark-mode svg.icon {
  fill: #1a1a1a;
}

/* ── FOOTER LIGHT MODE ────────────────────────────────── */
body:not(.Night) footer .Top-Footer {
  background: linear-gradient(180deg, #f7fbff, #edf3f9);
  border: 1px solid #d6e3ef;
}

body:not(.Night) footer .Bottom-Footer {
  background: #e8f0f8;
  border-top: 1px solid #ceddec;
}

body:not(.Night) footer,
body:not(.Night) footer a,
body:not(.Night) footer .Site-Name span {
  color: #1a1a1a !important;
}

body:not(.Night) footer a:hover {
  color: #059669 !important;
}

/* ── FOOTER DARK MODE ─────────────────────────────────── */
body.Night footer .Top-Footer {
  background: linear-gradient(180deg, #0d1321, #0a0e1a);
  border: 1px solid #1e2d3d;
}

body.Night footer .Bottom-Footer {
  background: #080c15;
  border-top: 1px solid #1e2d3d;
}

body.Night footer,
body.Night footer a,
body.Night footer .Site-Name span {
  color: #e2e8f0 !important;
}

body.Night footer a:hover {
  color: #10b981 !important;
}

/* ── MOBILE MENU ──────────────────────────────────────── */
@media screen and (max-width: 1000px) {
  body:not(.Night) .nav-menu .linkm {
    background: linear-gradient(170deg, #f8fafc 0%, #eef2f7 100%);
    border-left: 1px solid #cedfec;
  }

  body:not(.Night) .menu-label.op,
  body:not(.Night) .menu-label.clo {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #c7d8ea;
    color: #1a1a1a;
  }
}
