/* ═══════════════════════════════════════════════════
   CHRISYE — Legenda Musik Indonesia
   Cinematic Gold & Black Theme
   ═══════════════════════════════════════════════════ */

/* ─── Base ─────────────────────────────────────── */
::selection {
  background: rgba(201, 149, 58, 0.3);
  color: #f0d898;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(201, 149, 58, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 149, 58, 0.5); }

html { scroll-behavior: smooth; }

/* ─── Gold Text Gradient ──────────────────────── */
.gold-text {
  background: linear-gradient(135deg, #f0d898 0%, #c9953a 50%, #e8c264 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text-bright {
  background: linear-gradient(135deg, #fff5d4 0%, #f0d898 30%, #c9953a 70%, #e8c264 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Navigation ──────────────────────────────── */
#mainNav {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#mainNav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 1px 30px rgba(201, 149, 58, 0.05);
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.nav-link:hover, .nav-link.active {
  color: #f0d898;
  background: rgba(201, 149, 58, 0.08);
}

.donate-link {
  color: #c9953a !important;
  border: 1px solid rgba(201, 149, 58, 0.3);
}

.donate-link:hover {
  background: rgba(201, 149, 58, 0.15) !important;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.mobile-nav-link:hover {
  color: #f0d898;
  background: rgba(201, 149, 58, 0.08);
}

/* ─── Hero Section ────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 149, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 149, 58, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 92, 40, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 50%, #0a0a0a 100%);
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff5d4 0%, #f0d898 25%, #c9953a 60%, #855a28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 60px rgba(201, 149, 58, 0.15));
  animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { filter: drop-shadow(0 0 40px rgba(201, 149, 58, 0.1)); }
  to { filter: drop-shadow(0 0 80px rgba(201, 149, 58, 0.2)); }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.5em;
  color: rgba(201, 149, 58, 0.6);
}

.hero-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: rgba(201, 149, 58, 0.4);
  letter-spacing: 0.3em;
}

/* ─── Animated Music Notes ────────────────────── */
.music-note {
  position: absolute;
  color: rgba(201, 149, 58, 0.15);
  animation: floatNote linear infinite;
  pointer-events: none;
}

@keyframes floatNote {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* ─── Scroll Animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── Section Styling ────────────────────────── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #c9953a, transparent);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 149, 58, 0.2), transparent);
}

/* ─── Cards ──────────────────────────────────── */
.album-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.8));
  border: 1px solid rgba(201, 149, 58, 0.08);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 149, 58, 0.3);
  box-shadow: 0 20px 60px rgba(201, 149, 58, 0.1), 0 0 1px rgba(201, 149, 58, 0.3);
}

.album-card .album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.album-card:hover .album-overlay {
  opacity: 1;
}

.song-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6), rgba(20, 20, 20, 0.6));
  border: 1px solid rgba(201, 149, 58, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.song-card:hover {
  border-color: rgba(201, 149, 58, 0.25);
  background: linear-gradient(135deg, rgba(40, 35, 25, 0.6), rgba(25, 20, 15, 0.6));
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(201, 149, 58, 0.08);
}

.news-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.5), rgba(20, 20, 20, 0.5));
  border: 1px solid rgba(201, 149, 58, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s;
}

.news-card:hover {
  border-color: rgba(201, 149, 58, 0.2);
  transform: translateY(-4px);
}

/* ─── Timeline ───────────────────────────────── */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(201, 149, 58, 0.3), transparent);
  transform: translateX(-50%);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c9953a;
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 20px rgba(201, 149, 58, 0.3);
  transition: all 0.3s;
}

.timeline-dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 30px rgba(201, 149, 58, 0.5);
}

.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile timeline */
@media (max-width: 768px) {
  .timeline-line { left: 24px; }
}

/* ─── Stats Bar ──────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, rgba(201, 149, 58, 0.05), rgba(201, 149, 58, 0.02));
  border-top: 1px solid rgba(201, 149, 58, 0.1);
  border-bottom: 1px solid rgba(201, 149, 58, 0.1);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f0d898, #c9953a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Quote Section ──────────────────────────── */
.quote-block {
  position: relative;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(201, 149, 58, 0.03), transparent);
  border-left: 3px solid rgba(201, 149, 58, 0.3);
  border-radius: 0 1rem 1rem 0;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  font-family: 'Playfair Display', serif;
  color: rgba(201, 149, 58, 0.1);
  line-height: 1;
}

/* ─── Video Player ───────────────────────────── */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(201, 149, 58, 0.1);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── Gallery ────────────────────────────────── */
.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1e1e, #141414);
  border: 1px solid rgba(201, 149, 58, 0.06);
  transition: all 0.5s;
}

.gallery-item:hover {
  border-color: rgba(201, 149, 58, 0.3);
  transform: scale(1.02);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ─── Donate / QRIS ──────────────────────────── */
.qris-frame {
  background: white;
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(201, 149, 58, 0.15);
  max-width: 320px;
  margin: 0 auto;
}

.donate-glow {
  animation: donateGlow 3s ease-in-out infinite alternate;
}

@keyframes donateGlow {
  from { box-shadow: 0 0 30px rgba(201, 149, 58, 0.1); }
  to { box-shadow: 0 0 60px rgba(201, 149, 58, 0.25); }
}

/* ─── Certification Badge ────────────────────── */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-diamond { background: linear-gradient(135deg, #b9f2ff, #67e8f9); color: #164e63; }
.cert-platinum { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; }
.cert-gold { background: linear-gradient(135deg, #f0d898, #c9953a); color: #422006; }
.cert-silver { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #1f2937; }

/* ─── Tier Badge ─────────────────────────────── */
.tier-1 { border-left: 3px solid #c9953a; }
.tier-2 { border-left: 3px solid rgba(201, 149, 58, 0.4); }
.tier-3 { border-left: 3px solid rgba(201, 149, 58, 0.15); }

/* ─── Admin Dashboard ────────────────────────── */
.admin-stat-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.8));
  border: 1px solid rgba(201, 149, 58, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.scrape-btn {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(201, 149, 58, 0.15), rgba(201, 149, 58, 0.05));
  border: 1px solid rgba(201, 149, 58, 0.3);
  border-radius: 0.75rem;
  color: #f0d898;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.scrape-btn:hover {
  background: linear-gradient(135deg, rgba(201, 149, 58, 0.25), rgba(201, 149, 58, 0.1));
}

/* ─── 404 Page ───────────────────────────────── */
.four-oh-four {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  background: linear-gradient(180deg, rgba(201, 149, 58, 0.3), rgba(201, 149, 58, 0.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { letter-spacing: 0.04em; }
  .stat-number { font-size: 1.8rem; }
  .quote-block { padding: 1.5rem; }
  .quote-block::before { font-size: 4rem; top: -5px; left: 10px; }
}

/* ─── Category Filter Buttons ────────────────── */
.filter-btn {
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(201, 149, 58, 0.15);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
  border-color: rgba(201, 149, 58, 0.5);
  color: #f0d898;
  background: rgba(201, 149, 58, 0.08);
}

/* ─── Loading shimmer ────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, rgba(201, 149, 58, 0.05) 25%, rgba(201, 149, 58, 0.1) 50%, rgba(201, 149, 58, 0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ─── Pulse ring for featured items ──────────── */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(201, 149, 58, 0.3);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0; }
}
