/* ============================================================
   Live Dance Create LLC — Design System
   CSS Variables, Section Templates, Card Components, Animations
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --color-plum: #3D0C41;
  --color-plum-deep: #2A0830;
  --color-plum-light: #5C1A5E;
  --color-gold: #D4AF37;
  --color-gold-light: #E8D48B;
  --color-gold-dim: rgba(212, 175, 55, 0.15);
  --color-cream: #FFF8F0;
  --color-cream-warm: #FFF3E6;
  --color-white: #FFFFFF;
  --color-charcoal: #2D2D2D;
  --color-text-light: #F5F0E8;
  --color-text-muted: rgba(245, 240, 232, 0.5);
  --color-text-dark: #6B5F5F;
  --color-text-dark-muted: #8A7D7D;

  /* Typography */
  --font-display: 'Dancing Script', cursive;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Typography Scale */
  --text-hero: clamp(3rem, 7vw, 5rem);
  --text-h1: clamp(2.2rem, 5vw, 3.5rem);
  --text-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-h3: clamp(1.2rem, 2vw, 1.5rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ── Section Templates ── */
.section-light {
  background: var(--color-cream);
  color: var(--color-charcoal);
  position: relative;
}

.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.section-dark {
  background: var(--color-plum);
  color: var(--color-text-light);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--color-plum-deep) 0%, var(--color-plum) 50%, var(--color-plum-deep) 100%);
  pointer-events: none;
}

.section-editorial {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.section-editorial::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: gradientShift 12s ease-in-out infinite;
}

.section-immersive {
  background: var(--color-plum);
  position: relative;
  overflow: hidden;
}

.section-immersive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-plum-deep) 0%, var(--color-plum-light) 50%, var(--color-plum-deep) 100%);
  pointer-events: none;
}

/* ── Card Components ── */
.card-elevated {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-elevated:hover {
  transform: scale(1.03);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-dark {
  background: rgba(42, 8, 48, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.card-dark:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-light {
  background: var(--color-white);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

/* ── Button Styles ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: var(--color-gold);
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  animation: glowPulse 2.5s ease-in-out infinite;
}

.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  animation: none;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 27px;
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.btn-plum {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: var(--color-plum-light);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-plum:hover {
  background: var(--color-plum);
  transform: translateY(-2px);
}

/* ── Typography ── */
.text-script {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gold);
}

.text-editorial {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-plum) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heading-gold {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.2;
}

.heading-gold-light {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

/* ── Decorative Utilities ── */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  margin: var(--space-4) 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.gold-divider-center {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  margin: var(--space-4) auto;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.gradient-wash-light {
  position: relative;
}

.gradient-wash-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 90% 10%, rgba(212, 175, 55, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

.gradient-wash-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 10% 90%, rgba(42, 8, 48, 0.5) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Animation Utilities ── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.animate-fade-in.is-visible {
  opacity: 1;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

.animate-stagger {
  transition-delay: 0.1s;
}

.animate-stagger:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger:nth-child(6) { transition-delay: 0.6s; }

/* Full-section shifting gradient — apply .animate-gradient to a wrapper */
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* ── Keyframes ── */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
  50%       { box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.2); }
}

/* ── Texture Overlay ── */
.texture-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}