/* ==========================================================================
   青年高中音樂科 (Youth High School Music Department)
   旗艦官方網站樣式表 - 皇家星夜交響美學 (Royal Midnight Symphony)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Noto+Sans+TC:wght@300;400;500;700;900&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

:root {
  --bg-main: #070913;
  --bg-card: rgba(16, 20, 38, 0.75);
  --bg-card-hover: rgba(26, 32, 58, 0.9);
  --bg-elevated: #12172d;
  --primary-blue: #3a86ff;
  --primary-blue-glow: rgba(58, 134, 255, 0.35);
  --primary-gold: #f4c430;
  --primary-gold-light: #fbe382;
  --gold-glow: rgba(244, 196, 48, 0.35);
  --accent-cyan: #00f2fe;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(244, 196, 48, 0.3);
  --shadow-lux: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--primary-blue-glow);
  --font-serif: 'Playfair Display', 'Cinzel', serif;
  --font-sans: 'Noto Sans TC', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= Light Theme Mode (純淨日光・優雅音樂學府模式) ================= */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-elevated: #ffffff;
  --primary-blue: #1d4ed8;
  --primary-blue-glow: rgba(29, 78, 216, 0.18);
  --primary-gold: #b8860b;
  --primary-gold-light: #d4af37;
  --gold-glow: rgba(184, 134, 11, 0.18);
  --accent-cyan: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-gold: rgba(184, 134, 11, 0.35);
  --shadow-lux: 0 15px 35px -10px rgba(0, 0, 0, 0.08), 0 0 20px -5px rgba(58, 134, 255, 0.15);
}

[data-theme="light"] body {
  background-color: var(--bg-main);
  color: var(--text-main);
}

[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(58, 134, 255, 0.08) 0%, transparent 70%);
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(244, 196, 48, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .nav-blur {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-link {
  color: #334155;
}

[data-theme="light"] .nav-link:hover {
  color: var(--primary-blue);
}

[data-theme="light"] .glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-panel-gold {
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid rgba(58, 134, 255, 0.3);
  box-shadow: 0 20px 40px -15px rgba(58, 134, 255, 0.15);
}

[data-theme="light"] .text-white {
  color: #0f172a !important;
}

[data-theme="light"] .text-slate-100 {
  color: #0f172a !important;
}

[data-theme="light"] .text-slate-200 {
  color: #1e293b !important;
}

[data-theme="light"] .text-slate-300 {
  color: #334155 !important;
}

[data-theme="light"] .text-slate-400 {
  color: #64748b !important;
}

[data-theme="light"] .bg-\[\#070913\] {
  background-color: #f8fafc !important;
}

[data-theme="light"] .bg-\[\#090c1a\] {
  background-color: #f1f5f9 !important;
}

[data-theme="light"] .bg-\[\#101426\] {
  background-color: #ffffff !important;
}

[data-theme="light"] .bg-slate-950 {
  background-color: #f1f5f9 !important;
}

[data-theme="light"] .bg-slate-900 {
  background-color: #e2e8f0 !important;
}

[data-theme="light"] .bg-black\/95 {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
}

[data-theme="light"] .bg-black\/95 .text-white {
  color: #ffffff !important;
}

[data-theme="light"] .bg-black\/95 .text-slate-400 {
  color: #94a3b8 !important;
}

[data-theme="light"] .filter-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
}

[data-theme="light"] .filter-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  color: #fff !important;
}

[data-theme="light"] input, 
[data-theme="light"] select, 
[data-theme="light"] textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .modal-content {
  background: #ffffff;
  color: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Starlight Background Lighting */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: 15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.12) 0%, transparent 70%);
  filter: blur(85px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: 10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.09) 0%, transparent 70%);
  filter: blur(95px);
  z-index: -1;
  pointer-events: none;
}

.text-gold {
  color: var(--primary-gold);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 15%, var(--primary-gold-light) 60%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #ffffff 10%, #93c5fd 50%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.glass-panel-gold {
  background: linear-gradient(145deg, rgba(20, 26, 48, 0.85) 0%, rgba(10, 13, 26, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lux);
}

/* Custom Navigation Bar */
.nav-blur {
  background: rgba(7, 9, 19, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
}

.nav-link {
  position: relative;
  color: #cbd5e1;
  font-weight: 500;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Spotlight Soundwave Animation */
.soundwave-hero {
  position: relative;
  overflow: hidden;
}

.soundwave-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 850px;
  background: radial-gradient(ellipse at top, rgba(58, 134, 255, 0.16) 0%, rgba(244, 196, 48, 0.09) 45%, transparent 80%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  animation: pulseMusicLight 7s ease-in-out infinite alternate;
}

@keyframes pulseMusicLight {
  0% { opacity: 0.6; transform: translateX(-50%) rotate(-2deg); }
  100% { opacity: 1; transform: translateX(-50%) rotate(2deg); }
}

/* Sound Wave Bars */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.sound-bar {
  width: 3px;
  background: var(--primary-gold);
  border-radius: 9999px;
  animation: soundWaveAnim 1.2s ease-in-out infinite alternate;
}

.sound-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 16px; animation-delay: 0.4s; }
.sound-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 20px; animation-delay: 0.6s; }
.sound-bar:nth-child(5) { height: 12px; animation-delay: 0.3s; }

@keyframes soundWaveAnim {
  0% { height: 4px; }
  100% { height: 20px; }
}

/* Luxury Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 100%);
  color: #0f172a;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 196, 48, 0.6);
  color: #000;
}

.btn-blue {
  background: linear-gradient(135deg, #60a5fa 0%, var(--primary-blue) 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 20px var(--primary-blue-glow);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58, 134, 255, 0.6);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-blue);
  color: #93c5fd;
  transform: translateY(-2px);
}

/* Filter Badges */
.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-blue-glow);
}

/* Concert Cards */
.concert-card {
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

.concert-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--gold-glow);
}

/* Audio Player Widget */
.audio-player-panel {
  background: linear-gradient(135deg, rgba(20, 26, 48, 0.95) 0%, rgba(10, 13, 26, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(244, 196, 48, 0.2);
}

/* Accordion FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-gold);
}

/* Floating Action Button (FAB) */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fab-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.fab-btn:hover {
  transform: scale(1.1);
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: 1.5rem;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--gold-glow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}
