/* ============================================================
   ABAVA VOLLEYBALL — Main Stylesheet
   Aesthetic: Bold Caribbean sports — deep navy + electric gold
   Fonts: Bebas Neue (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:        #0a0e1a;
  --navy-mid:    #111827;
  --navy-light:  #1c2540;
  --gold:        #f5c518;
  --gold-dim:    #c49a10;
  --white:       #f0f2f7;
  --white-dim:   #9aa3b8;
  --accent:      #e8423a;
  --green:       #22c55e;
  --red:         #ef4444;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-mid); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.section-subtitle {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.gold { color: var(--gold); }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 4px;
}
.tag-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,197,24,0.15);
  height: 64px;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
}
.navbar-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.navbar-flag {
  width: 36px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center center;
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.85; }
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,197,24,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232,66,58,0.06) 0%, transparent 50%),
    var(--navy);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero-eyebrow-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--white-dim);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: #ffd93d; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hero-ball {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 42vw);
  z-index: 1;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}
.hero-ball svg { width: 100%; height: auto; }
@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(calc(-50% - 20px)) rotate(8deg); }
}

/* ── Live Score Ticker ─────────────────────────────────────── */
.ticker-bar {
  background: var(--navy-mid);
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
  position: relative;
}
.ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}
.ticker-label {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  padding: 0 28px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}
.ticker-scroll {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 36s linear infinite;
  white-space: nowrap;
  align-items: center;
  padding: 8px 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  letter-spacing: 0.02em;
}
.ticker-team {
  color: var(--white);
  font-size: 1rem;
}
.ticker-score {
  background: var(--gold);
  color: var(--navy);
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  min-width: 52px;
  text-align: center;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Scores / Results ──────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.match-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.match-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.match-card-div {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 14px;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.match-team img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-mid);
  border: 2px solid rgba(255,255,255,0.1);
}
.match-team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
}
.match-team-name {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}
.match-score-box {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 8px 16px;
  text-align: center;
}
.match-score-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
}
.match-score-label {
  font-size: 0.65rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Standings ─────────────────────────────────────────────── */
.standings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
}
.standings-tab {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--white-dim);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  margin-bottom: -1px;
}
.standings-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.standings-panel { display: none; }
.standings-panel.active { display: block; }
.standings-table {
  width: 100%;
  border-collapse: collapse;
}
.standings-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.standings-table td {
  padding: 12px 12px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: rgba(255,255,255,0.02); }
.st-rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white-dim);
  width: 36px;
}
.st-rank.top3 { color: var(--gold); }
.st-team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-team img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-mid);
}
.st-team-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
}
.st-pts {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}
.streak {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.streak-w { background: rgba(34,197,94,0.15); color: var(--green); }
.streak-l { background: rgba(239,68,68,0.15); color: var(--red); }

/* ── Photo Gallery ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--navy-light);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
  image-rendering: auto;
  width: auto;
  height: auto;
  min-width: 300px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ── News ──────────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all var(--transition);
}
.news-item:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateX(4px);
}
.news-item-title {
  font-weight: 500;
  font-size: 0.95rem;
}
.news-item-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.news-item:hover .news-item-arrow { transform: translateX(4px); }

/* ── Recap ─────────────────────────────────────────────────── */
.recap-card {
  background: var(--navy-light);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.recap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.recap-card p {
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.75;
}
.recap-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.recap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.recap-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ── About section ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  color: var(--white-dim);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-fact {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
}
.about-fact-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.about-fact-label {
  font-size: 0.8rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Last updated bar ──────────────────────────────────────── */
.status-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 0;
  text-align: center;
}
.status-bar span {
  font-size: 0.72rem;
  color: var(--white-dim);
  letter-spacing: 0.06em;
}
#last-updated { color: var(--gold); }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--gold); }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.6;
  max-width: 280px;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--white-dim);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--white-dim); }
.footer-lr-link {
  font-size: 0.78rem;
  color: var(--white-dim);
}
.footer-lr-link a { color: var(--gold); }

/* ── Mobile nav ────────────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .navbar-hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-stats { gap: 24px; }
  .results-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
