/**
 * Shared EBF navbar shell for pages without the full index.html stylesheet
 * (e.g. Timeline). Load after Montserrat so font-family inherits.
 */

:root {
  --blue: #1a56db;
  --blue2: #3b82f6;
  --accent: #60a5fa;
  --gold: #f59e0b;
  --purple: #7c3aed;
  --purple2: #6d28d9;
  --glow: rgba(59, 130, 246, 0.25);
  --player-h: 20px;
}
[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg2: #0d1530;
  --bg3: #111a3a;
  --text: #f0f4ff;
  --text2: #a0b4d0;
  --muted: #6b7fa8;
  --card: #111d3d;
  --border: rgba(96, 165, 250, 0.15);
  --nav-bg: rgba(10, 15, 30, 0.9);
  --footer-bg: #0d1530;
  --player-bg: rgba(5, 8, 20, 0.97);
  --player-bdr: rgba(96, 165, 250, 0.22);
  --drop-bg: rgba(7, 11, 25, 0.98);
  --shadow: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] {
  --bg: #f2f6ff;
  --bg2: #e5ecfb;
  --bg3: #d8e3f7;
  --text: #0d1530;
  --text2: #3a4a6a;
  --muted: #6b7fa8;
  --card: #ffffff;
  --border: rgba(26, 86, 219, 0.14);
  --nav-bg: rgba(242, 246, 255, 0.93);
  --footer-bg: #0e1a40;
  --player-bg: rgba(8, 14, 35, 0.97);
  --player-bdr: rgba(96, 165, 250, 0.28);
  --drop-bg: rgba(8, 14, 35, 0.99);
  --shadow: rgba(0, 20, 80, 0.12);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

nav {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(22px) saturate(1.5);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.4s;
}
nav.scrolled {
  box-shadow: 0 4px 40px var(--shadow);
}

#global-live-banner {
  display: none;
  position: sticky;
  top: 68px;
  z-index: 190;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
  position: relative;
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px var(--glow);
  transition: transform 0.3s, box-shadow 0.3s;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}
.nav-logo span {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
  letter-spacing: 0.02em;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue2), var(--purple));
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: auto;
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  color: var(--text2);
}
.theme-icon i,
.theme-icon svg {
  width: 1.1em;
  text-align: center;
}
.theme-toggle {
  width: 48px;
  height: 27px;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  position: relative;
  transition: background 0.3s;
  box-shadow: 0 0 12px var(--glow);
}
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .theme-toggle::after {
  transform: translateX(20px);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.nav-phone:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.18));
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
  color: #4ade80;
}
.nav-phone-icon {
  font-size: 0.95rem;
  animation: phoneRing 3s ease-in-out infinite;
}
@keyframes phoneRing {
  0%, 90%, 100% {
    transform: rotate(0deg);
  }
  92% {
    transform: rotate(-15deg);
  }
  94% {
    transform: rotate(15deg);
  }
  96% {
    transform: rotate(-10deg);
  }
  98% {
    transform: rotate(10deg);
  }
}

.nav-lang-picker {
  position: relative;
  flex-shrink: 0;
}
.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}
.nav-lang-btn:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  transform: scale(1.05);
}
.nav-lang-btn .globe-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}
.nav-lang-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 200px;
  box-shadow: 0 16px 50px var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 650;
  backdrop-filter: blur(20px);
}
.nav-lang-drop.open {
  display: flex;
}
.nav-lang-drop-header {
  padding: 10px 16px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.nav-lang-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--border);
}
.nav-lang-item:last-child {
  border-bottom: none;
}
.nav-lang-item:hover {
  background: rgba(96, 165, 250, 0.08);
  color: var(--text);
}
.nav-lang-flag {
  font-size: inherit;
  line-height: 1;
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.08);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.nav-lang-flag i {
  font-size: 0.85rem;
}
.nav-lang-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-lang-name {
  font-weight: 700;
  font-size: 0.86rem;
}
.nav-lang-url {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  position: relative;
  padding: 0;
}
.hamburger:hover {
  background: var(--card);
  border-color: rgba(96, 165, 250, 0.4);
}
.hb-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hb-bar:nth-child(1) {
  top: 12px;
}
.hb-bar:nth-child(2) {
  top: 18px;
}
.hb-bar:nth-child(3) {
  top: 24px;
}
.hamburger.open .hb-bar:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}
.hamburger.open .hb-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hb-bar:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: min(300px, 82vw);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 601;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 50px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}
.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.drawer-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.drawer-logo span {
  font-weight: 800;
  font-size: 0.9rem;
}
.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.drawer-close:hover {
  background: var(--card);
}

.drawer-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}
.drawer-phone:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.14));
}
.drawer-phone-icon {
  font-size: 1.2rem;
  animation: phoneRing 3s ease-in-out infinite;
}
.drawer-phone-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74, 222, 128, 0.75);
}
.drawer-phone-num {
  font-size: 1rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.03em;
}

.drawer-section {
  padding: 10px 18px 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  color: var(--text2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.drawer-nav-link .dnl-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.drawer-nav-link:hover {
  background: rgba(96, 165, 250, 0.07);
  color: var(--text);
}

.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.drawer-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}
.drawer-theme-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-lang-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.drawer-lang-link:hover {
  background: rgba(96, 165, 250, 0.07);
  color: var(--text);
}
.drawer-lang-flag {
  font-size: inherit;
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.1);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.drawer-lang-flag i {
  font-size: 0.9rem;
}
.drawer-lang-name {
  font-weight: 700;
  font-size: 0.86rem;
}
.drawer-lang-url {
  font-size: 0.66rem;
  color: var(--muted);
}

.drawer-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  border-top: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.drawer-accordion-btn:hover {
  background: rgba(96, 165, 250, 0.07);
  color: var(--text);
}
.drawer-accordion-chevron {
  font-size: 0.6rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.drawer-accordion-btn[aria-expanded="true"] .drawer-accordion-chevron {
  transform: rotate(180deg);
}
.drawer-accordion-body {
  display: none;
  flex-direction: column;
  background: rgba(96, 165, 250, 0.03);
  border-bottom: 1px solid var(--border);
}
.drawer-accordion-body.open {
  display: flex;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-lang-picker {
    display: none;
  }
  .theme-toggle-wrap {
    display: none;
  }
  .nav-phone {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

[data-theme="light"] .nav-phone {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.07)) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  color: var(--blue) !important;
}
[data-theme="light"] .nav-phone:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(29, 78, 216, 0.13)) !important;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.2) !important;
  color: var(--blue) !important;
}
[data-theme="light"] .drawer-phone-num {
  color: var(--blue) !important;
}
[data-theme="light"] .drawer-phone-label {
  color: rgba(29, 78, 216, 0.7) !important;
}
