/* ==========================================================================
   DEMO INVITATION SITE STYLES — 6 LUXURY COLOR THEMES
   Themeable via CSS Custom Properties
   ========================================================================== */

:root {
  /* Default Theme 1: Royal Gold & Champagne */
  --primary-gold: #d4af37;
  --primary-gold-light: #f5e6a8;
  --primary-gold-dark: #8a6a1c;
  --accent-glow: rgba(212, 175, 55, 0.25);
  
  --bg-dark: #0c0c10;
  --bg-card: rgba(22, 22, 30, 0.78);
  --bg-card-hover: rgba(32, 32, 44, 0.88);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-subtle: rgba(212, 175, 55, 0.15);
  
  --text-main: #fbf9f5;
  --text-muted: #c8c5bc;
  --text-gold: #e6ca65;

  --font-serif: 'Cormorant Garamond', 'Amiri', serif;
  --font-sans: 'Outfit', 'Cairo', sans-serif;
  --font-script: 'Alex Brush', 'Aref Ruqaa', cursive;
}

/* Theme 2: Emerald Noir & Velvet */
body.theme-emerald {
  --primary-gold: #10b981;
  --primary-gold-light: #6ee7b7;
  --primary-gold-dark: #047857;
  --accent-glow: rgba(16, 185, 129, 0.28);
  --bg-dark: #06140f;
  --bg-card: rgba(10, 30, 24, 0.82);
  --bg-card-hover: rgba(16, 44, 35, 0.92);
  --border-gold: rgba(16, 185, 129, 0.45);
  --border-gold-subtle: rgba(16, 185, 129, 0.2);
  --text-gold: #a7f3d0;
}

/* Theme 3: Rose Gold & Blush Velvet */
body.theme-rose {
  --primary-gold: #e07a8b;
  --primary-gold-light: #fbcfe8;
  --primary-gold-dark: #9d174d;
  --accent-glow: rgba(224, 122, 139, 0.3);
  --bg-dark: #14090d;
  --bg-card: rgba(30, 15, 22, 0.84);
  --bg-card-hover: rgba(45, 22, 33, 0.94);
  --border-gold: rgba(224, 122, 139, 0.45);
  --border-gold-subtle: rgba(224, 122, 139, 0.2);
  --text-gold: #f9a8d4;
}

/* Theme 4: Midnight Navy & Pearl Silver */
body.theme-navy {
  --primary-gold: #38bdf8;
  --primary-gold-light: #bae6fd;
  --primary-gold-dark: #0369a1;
  --accent-glow: rgba(56, 189, 248, 0.28);
  --bg-dark: #070d18;
  --bg-card: rgba(12, 22, 40, 0.84);
  --bg-card-hover: rgba(18, 32, 58, 0.92);
  --border-gold: rgba(56, 189, 248, 0.42);
  --border-gold-subtle: rgba(56, 189, 248, 0.18);
  --text-gold: #7dd3fc;
}

/* Theme 5: Royal Burgundy & Velvet Bordeaux */
body.theme-burgundy {
  --primary-gold: #f43f5e;
  --primary-gold-light: #fecdd3;
  --primary-gold-dark: #be123c;
  --accent-glow: rgba(244, 63, 94, 0.3);
  --bg-dark: #16060b;
  --bg-card: rgba(34, 10, 18, 0.85);
  --bg-card-hover: rgba(48, 14, 25, 0.95);
  --border-gold: rgba(244, 63, 94, 0.45);
  --border-gold-subtle: rgba(244, 63, 94, 0.2);
  --text-gold: #fda4af;
}

/* Theme 6: Lavender Dream & Royal Lilac */
body.theme-lavender {
  --primary-gold: #a855f7;
  --primary-gold-light: #e9d5ff;
  --primary-gold-dark: #7e22ce;
  --accent-glow: rgba(168, 85, 247, 0.3);
  --bg-dark: #100818;
  --bg-card: rgba(26, 14, 38, 0.84);
  --bg-card-hover: rgba(38, 20, 56, 0.94);
  --border-gold: rgba(168, 85, 247, 0.45);
  --border-gold-subtle: rgba(168, 85, 247, 0.2);
  --text-gold: #d8b4fe;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 100vh;
}

/* Fonts for RTL */
[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
}
[dir="rtl"] .font-serif {
  font-family: 'Amiri', serif;
}
[dir="rtl"] .font-script {
  font-family: 'Aref Ruqaa', cursive;
}

/* Luxury Utilities */
.gold-gradient-text {
  background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 50%, var(--primary-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 60%, var(--primary-gold-dark) 100%);
}

.gold-border-glow {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 20px var(--accent-glow);
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

/* Luxury Ornaments */
.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.ornament-line::before,
.ornament-line::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* Music Floating Bar */
.music-toggle-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[dir="rtl"] .music-toggle-btn {
  right: auto;
  left: 14px;
}
.music-toggle-btn:active {
  transform: scale(0.92);
}
.music-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.music-wave span {
  width: 2px;
  background: var(--primary-gold);
  border-radius: 1px;
  height: 4px;
  transition: height 0.2s ease;
}
.music-playing .music-wave span:nth-child(1) { animation: wave 0.8s ease-in-out infinite alternate; }
.music-playing .music-wave span:nth-child(2) { animation: wave 1.1s ease-in-out infinite alternate 0.2s; }
.music-playing .music-wave span:nth-child(3) { animation: wave 0.9s ease-in-out infinite alternate 0.4s; }

@keyframes wave {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Countdown Clock */
.countdown-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 8px;
}
.time-unit {
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 10px;
  padding: 8px 4px;
}
.time-unit .val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1.1;
  font-family: var(--font-serif);
}
.time-unit .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 24px;
  border-left: 1px dashed var(--border-gold);
}
[dir="rtl"] .timeline-item {
  padding-left: 0;
  padding-right: 24px;
  border-left: none;
  border-right: 1px dashed var(--border-gold);
}
.timeline-item:last-child {
  border-left: none;
  border-right: none;
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  top: 0;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-gold);
  box-shadow: 0 0 10px var(--primary-gold);
}
[dir="rtl"] .timeline-dot {
  left: auto;
  right: -6px;
}

/* Guestbook Form */
.guest-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.guest-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px var(--accent-glow);
}
.guest-input::placeholder {
  color: rgba(200, 197, 188, 0.5);
}

/* Custom Scrollbar for Demo */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 4px;
}
