/* ==========================================================================
   Royal Kodava Heritage & Invitation Warm Gold Theme
   Ponanna & Harshita Wedding Countdown
   ========================================================================== */

:root {
  /* Color Palette - extracted from Wedding Invitation */
  --color-bg-base: #f7f1e5;
  --color-bg-warm: #fcf9f2;
  --color-bg-darker: #ede3d1;
  
  /* Primary Royal Maroon */
  --color-maroon-deep: #3d0c07;
  --color-maroon-primary: #5c1416;
  --color-maroon-rich: #781c1e;
  --color-crimson: #990b2b;

  /* Antique Champagne Gold */
  --color-gold-light: #f7e6be;
  --color-gold-primary: #c88d32;
  --color-gold-deep: #966214;
  --color-gold-glow: rgba(200, 141, 50, 0.25);

  /* Neutrals & Text */
  --color-espresso: #2d1b14;
  --color-charcoal: #423028;
  --color-muted: #786458;
  --color-card-bg: rgba(255, 255, 255, 0.82);
  --color-card-inner: rgba(255, 255, 255, 0.88);

  /* Typography */
  --font-display: 'Playfair Display', 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-digits: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --border-gold-subtle: 1px solid rgba(200, 141, 50, 0.3);
  --border-gold-highlight: 1px solid rgba(200, 141, 50, 0.6);
  --card-shadow: 0 10px 30px -5px rgba(92, 20, 22, 0.08), 0 2px 12px rgba(200, 141, 50, 0.1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(circle at 50% 15%, #ffffff 0%, #fbf6ee 45%, #f2e7d5 100%);
  color: var(--color-espresso);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Particles Canvas */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Page Wrapper */
.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  justify-content: space-between;
}

/* Audio Control Floating Group */
.audio-control-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-direction: row-reverse;
}

/* Audio Toggle Floating Button */
.audio-toggle {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 141, 50, 0.4);
  color: var(--color-gold-deep);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(92, 20, 22, 0.08);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.audio-pill {
  background: rgba(45, 27, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fffdf9;
  border: 1px solid rgba(200, 141, 50, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  animation: pillGentleBounce 2.4s infinite ease-in-out;
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.audio-pill:hover {
  background: rgba(92, 20, 22, 0.95);
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 15px rgba(200, 141, 50, 0.4);
}

.audio-pill.fade-out {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.audio-pill.playing {
  background: rgba(92, 20, 22, 0.9);
  border-color: rgba(200, 141, 50, 0.6);
  animation: none;
  cursor: default;
}

.audio-pill.pulse-attention {
  animation: pillAttention 0.7s ease;
  border-color: var(--color-gold-primary);
  background: rgba(92, 20, 22, 0.95);
  box-shadow: 0 0 20px rgba(200, 141, 50, 0.6);
}

@keyframes pillAttention {
  0% { transform: scale(1); }
  35% { transform: scale(1.1); }
  70% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@keyframes pillGentleBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

.audio-toggle:hover {
  transform: scale(1.08);
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 20px var(--color-gold-glow);
}

.audio-toggle .sound-wave {
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.audio-toggle.playing .sound-wave {
  opacity: 1;
  animation: soundPulse 1.2s infinite ease-in-out alternate;
}

.audio-toggle.playing .sound-wave-2 {
  animation-delay: 0.4s;
}

.audio-tooltip {
  display: none;
}

.audio-toggle:hover .audio-tooltip {
  display: block;
  position: absolute;
  right: calc(100% + 10px);
  background: rgba(45, 27, 20, 0.92);
  color: #fffdf9;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(200, 141, 50, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@keyframes soundPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Hero Header */
.hero-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-illustration-wrapper {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.hero-illustration {
  max-width: 320px;
  width: 82%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(92, 20, 22, 0.12));
  animation: gentleFloat 4s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.wedding-proclamation {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--color-gold-deep);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.couple-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  color: var(--color-maroon-primary);
  text-shadow: 0 2px 10px rgba(92, 20, 22, 0.12);
  margin-bottom: 0.5rem;
}

.couple-title .conjunction {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  margin: 0 0.4rem;
  color: var(--color-gold-primary);
}

.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 220px;
  margin: 0.5rem auto 1rem;
}

.ornate-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 141, 50, 0.6), transparent);
}

.ornate-divider .diamond-symbol {
  color: var(--color-gold-primary);
  font-size: 0.85rem;
  filter: drop-shadow(0 0 3px rgba(200, 141, 50, 0.4));
}

/* Countdown Grid */
.countdown-section {
  width: 100%;
  margin-bottom: 2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-inner {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: var(--color-card-inner);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 141, 50, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px -4px rgba(92, 20, 22, 0.08), 0 2px 10px rgba(200, 141, 50, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.card-inner:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-primary);
  box-shadow: 0 16px 35px -6px rgba(92, 20, 22, 0.14), 0 0 20px var(--color-gold-glow);
}

.digit-value {
  font-family: var(--font-digits);
  font-size: 3.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-maroon-primary);
  text-shadow: 0 1px 3px rgba(92, 20, 22, 0.15);
  letter-spacing: -0.02em;
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-gold-deep);
  margin-top: 0.75rem;
  text-align: center;
}

/* Celebration Banner */
.celebration-banner {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(200, 141, 50, 0.25);
  animation: celebrationPulse 2s infinite ease-in-out;
}

@keyframes celebrationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.celebration-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.celebration-banner h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--color-maroon-primary);
  margin-bottom: 0.5rem;
}

/* Details Section */
.details-section {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 141, 50, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 35px -5px rgba(92, 20, 22, 0.08), 0 3px 12px rgba(200, 141, 50, 0.1);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(200, 141, 50, 0.12);
  border: 1px solid rgba(200, 141, 50, 0.4);
  color: var(--color-gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: 0.15rem;
}

.detail-sub {
  font-size: 0.95rem;
  color: var(--color-maroon-rich);
  font-weight: 500;
}

.card-separator {
  height: 1px;
  background: rgba(200, 141, 50, 0.2);
  margin: 1.25rem 0;
}

.venue-action {
  margin-top: 1.25rem;
  text-align: right;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-gold-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-link:hover {
  color: var(--color-maroon-primary);
  transform: translateX(3px);
}

/* Actions Buttons Hub */
.actions-section {
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
}

.action-buttons-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
  flex: 1;
}

.btn-gold {
  background: linear-gradient(135deg, #f7e2af 0%, #c88d32 60%, #966214 100%);
  color: #2d1406;
  box-shadow: 0 4px 18px rgba(200, 141, 50, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 141, 50, 0.5);
}

.btn-emerald {
  background: linear-gradient(135deg, #781c1e 0%, #521213 100%);
  border: 1px solid rgba(200, 141, 50, 0.45);
  color: #fdfbf7;
  box-shadow: 0 4px 18px rgba(92, 20, 22, 0.25);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #8a2123 0%, #5e1516 100%);
  box-shadow: 0 8px 25px rgba(92, 20, 22, 0.35);
}

/* Calendar Dropdown */
.calendar-dropdown-container {
  position: relative;
  flex: 1;
  display: flex;
}

.dropdown-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(255, 253, 248, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 141, 50, 0.35);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(92, 20, 22, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 20;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-espresso);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(200, 141, 50, 0.15);
  color: var(--color-maroon-primary);
}

/* Footer */
.page-footer {
  text-align: center;
  margin-top: 1rem;
}

.coorg-badge {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-gold-deep);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.copyright {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hidden {
  display: none !important;
}
