/* ============================================================
   EXTRA STYLES — Additional sections, animations, components
   ============================================================ */

/* ── COOKIE BANNER ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(135deg, rgba(4,24,40,0.98), rgba(16,44,67,0.98));
  border-top: 2px solid rgba(0,170,255,0.3);
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
}
.cookie-banner.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.cookie-content { display: flex; align-items: center; gap: 16px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; font-size: 0.88rem; font-weight: 600; color: var(--text-dim); line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { font-family: var(--font-body); font-weight: 800; font-size: 0.82rem; padding: 10px 20px; border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.cookie-btn-accept { background: linear-gradient(135deg, #0066cc, #4aa1ba); color: #fff; box-shadow: 0 4px 14px rgba(0,170,255,0.3); }
.cookie-btn-accept:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,170,255,0.4); }
.cookie-btn-decline { background: rgba(0,170,255,0.08); border: 1px solid rgba(0,170,255,0.3); color: var(--text-dim); }
.cookie-btn-decline:hover { background: rgba(0,170,255,0.15); color: var(--cyan); }

/* ── MOBILE MENU ───────────────────────────────────────────── */
.mobile-menu-btn {
  display: none; font-size: 1.5rem; background: none; border: none;
  color: var(--cyan); cursor: pointer; padding: 4px 8px;
}
@media(max-width:768px) {
  .mobile-menu-btn { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--ocean-dk); border-bottom: 2px solid rgba(0,170,255,0.3); padding: 12px 20px; gap: 12px; z-index: 99; }
  nav.open { display: flex; }
  nav a { display: block !important; padding: 8px 0; }
  .nav-extra { display: block !important; }
}

/* ── FADE-IN ANIMATIONS ────────────────────────────────────── */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }

/* ── SECTION SUBTITLE ──────────────────────────────────────── */
.section-subtitle { color: var(--text-dim); font-size: 0.95rem; font-weight: 600; margin-bottom: 24px; line-height: 1.6; }

/* ── ABOUT INTRO ───────────────────────────────────────────── */
.about-intro { margin-bottom: 28px; }
.about-intro p { color: var(--text); font-size: 1.05rem; line-height: 1.8; font-weight: 600; max-width: 780px; }

/* ── LEADERBOARD ───────────────────────────────────────────── */
.leaderboard-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgba(0,170,255,0.2); box-shadow: var(--shadow); }
.leaderboard-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.leaderboard-table thead { background: rgba(0,170,255,0.08); }
.leaderboard-table th { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); padding: 14px 16px; text-align: left; border-bottom: 2px solid rgba(0,170,255,0.2); }
.leaderboard-table td { padding: 12px 16px; font-size: 0.9rem; font-weight: 600; color: var(--text); border-bottom: 1px solid rgba(0,170,255,0.08); }
.leaderboard-table tbody tr { transition: background 0.2s; }
.leaderboard-table tbody tr:hover { background: rgba(0,170,255,0.05); }
.lb-gold td { color: #ffd700; }
.lb-silver td { color: #c0c0c0; }
.lb-bronze td { color: #cd7f32; }
.lb-avatar { font-size: 1.2rem; margin-right: 6px; }
.leaderboard-note { margin-top: 16px; font-size: 0.88rem; font-weight: 700; color: var(--text-dim); text-align: center; }
.leaderboard-note span { color: var(--cyan); }

/* ── GALLERY ───────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(0,170,255,0.2); background: rgba(4,24,40,0.8); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.gallery-item:hover { transform: scale(1.03); border-color: var(--cyan); box-shadow: 0 8px 32px rgba(0,170,255,0.2); }
.gallery-item img { width: 60%; height: 60%; object-fit: contain; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; background: linear-gradient(transparent, rgba(4,24,40,0.9)); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; justify-content: center; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
@media(max-width:768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ── BLOG ──────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.blog-card { display: flex; gap: 16px; background: rgba(4,24,40,0.8); border: 1px solid rgba(0,170,255,0.18); border-radius: var(--radius-lg); padding: 22px; transition: all 0.2s; box-shadow: var(--shadow); }
.blog-card:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,170,255,0.15); }
.blog-card-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.blog-card-body h3 { font-family: var(--font-title); font-size: 1.05rem; color: var(--cyan); margin-bottom: 6px; }
.blog-date { font-size: 0.72rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.blog-card-body p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.7; font-weight: 600; }
.blog-tag { display: inline-block; margin-top: 10px; font-size: 0.68rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: rgba(0,170,255,0.1); border: 1px solid rgba(0,170,255,0.25); color: var(--water-lt); }
@media(max-width:768px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid rgba(0,170,255,0.18); border-radius: var(--radius); overflow: hidden; background: rgba(4,24,40,0.7); transition: border-color 0.2s; }
.faq-item:hover { border-color: rgba(0,170,255,0.35); }
.faq-item.active { border-color: var(--water-lt); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--text); text-align: left; transition: color 0.2s; }
.faq-question:hover { color: var(--cyan); }
.faq-arrow { font-size: 0.8rem; color: var(--text-dim); transition: transform 0.3s; }
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--cyan); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s; padding: 0 20px; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 20px 16px; }
.faq-answer p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.75; font-weight: 600; }

/* ── BACK TO TOP ───────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #0066cc, #4aa1ba);
  border: 2px solid rgba(0,170,255,0.4);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,170,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,170,255,0.4); }

/* ── FLOATING BUBBLES (decorative) ─────────────────────────── */
@keyframes float-bubble {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-40px) scale(1.1); opacity: 0.3; }
  100% { transform: translateY(-80px) scale(0.8); opacity: 0; }
}
.deco-bubble {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0,170,255,0.3), rgba(0,170,255,0.05));
  animation: float-bubble 6s ease-in-out infinite;
}

/* ── PULSE GLOW ANIMATION (for headings) ──────────────────── */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px var(--cyan-glow); }
  50% { text-shadow: 0 0 25px var(--cyan-glow), 0 0 50px rgba(0,170,255,0.15); }
}
.section-heading { animation: glow-pulse 4s ease-in-out infinite; }

/* ── SMOOTH SCROLL INDICATOR ──────────────────────────────── */
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ── NAV EXTRA LINKS ──────────────────────────────────────── */
.nav-extra { color: var(--text-dim) !important; }
.nav-extra:hover { color: var(--cyan) !important; }

/* ── STATS COUNTER (animated numbers) ─────────────────────── */
.stats-bar {
  display: flex; justify-content: center; gap: 40px; padding: 24px 16px;
  background: rgba(0,170,255,0.04); border-top: 1px solid rgba(0,170,255,0.12);
  border-bottom: 1px solid rgba(0,170,255,0.12); margin: 0;
}
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-title); font-size: 2rem; color: var(--cyan); display: block; text-shadow: 0 0 12px var(--cyan-glow); }
.stat-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); }
@media(max-width:480px) { .stats-bar { gap: 20px; } .stat-number { font-size: 1.5rem; } }
