/* ==========================================================================
   青年高中表演藝術科 (Youth High School Performing Arts Department)
   旗艦官方網站樣式表 - 暗黑劇場星光美學 (Theater Dark Modern Luxury)
   ========================================================================== */

@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: #0a0b10;
  --bg-card: rgba(18, 20, 30, 0.75);
  --bg-card-hover: rgba(28, 32, 48, 0.9);
  --bg-elevated: #161824;
  --primary-gold: #e5b95c;
  --primary-gold-light: #f7d78a;
  --gold-glow: rgba(229, 185, 92, 0.35);
  --accent-crimson: #d90429;
  --accent-crimson-light: #ef233c;
  --crimson-glow: rgba(217, 4, 41, 0.3);
  --text-main: #f8f9fa;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 185, 92, 0.3);
  --shadow-lux: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--gold-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-gold: #b8860b;
  --primary-gold-light: #d4af37;
  --gold-glow: rgba(184, 134, 11, 0.18);
  --accent-crimson: #c9184a;
  --accent-crimson-light: #e63946;
  --crimson-glow: rgba(201, 24, 74, 0.15);
  --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(184, 134, 11, 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(230, 57, 70, 0.08) 0%, transparent 70%);
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(212, 175, 55, 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-gold);
}

[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%, #fefce8 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 40px -15px rgba(184, 134, 11, 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-\[\#0a0b10\] {
  background-color: #f8fafc !important;
}

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

[data-theme="light"] .bg-\[\#0e101a\] {
  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(--accent-crimson) 0%, #a0092e 100%);
  color: #fff !important;
}

[data-theme="light"] .stage-spotlight::before {
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12) 0%, rgba(230, 57, 70, 0.06) 40%, transparent 80%);
}

[data-theme="light"] .btn-outline-glass {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-outline-glass:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

[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 Stage Background Lighting */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: 5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(229, 185, 92, 0.09) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

/* Typography Enhancements */
h1, h2, h3, .font-display {
  letter-spacing: -0.02em;
}

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

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

.text-gradient-crimson {
  background: linear-gradient(135deg, #ffffff 10%, #ff8fa3 50%, var(--accent-crimson) 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(26, 28, 42, 0.8) 0%, rgba(14, 15, 23, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lux);
}

/* Custom Navigation Bar */
.nav-blur {
  background: rgba(10, 11, 16, 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 Stage Animation */
.stage-spotlight {
  position: relative;
  overflow: hidden;
}

.stage-spotlight::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 900px;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.16) 0%, rgba(229, 185, 92, 0.1) 40%, transparent 80%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  animation: pulseLight 8s ease-in-out infinite alternate;
}

@keyframes pulseLight {
  0% { opacity: 0.7; transform: translateX(-50%) rotate(-3deg); }
  100% { opacity: 1; transform: translateX(-50%) rotate(3deg); }
}

/* 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(229, 185, 92, 0.6);
  color: #000;
}

.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-gold);
  color: var(--primary-gold);
  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(--accent-crimson) 0%, #b50422 100%);
  border-color: var(--accent-crimson-light);
  color: #fff;
  box-shadow: 0 4px 15px var(--crimson-glow);
}

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

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

/* Alumni Stars Grid */
.alumni-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.alumni-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 185, 92, 0.25);
  border-color: var(--border-gold);
}

/* 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);
}
