/* ==========================================================================
   UNDANGAN DIGITAL ONLINE STATIS - LUXURY EMERALD & GOLD DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --color-emerald-dark: #032b25;
  --color-emerald-deep: #064e3b;
  --color-emerald-main: #047857;
  --color-emerald-light: #10b981;
  --color-emerald-bg: #ecfdf5;

  --color-gold-dark: #92400e;
  --color-gold-main: #d97706;
  --color-gold-light: #f59e0b;
  --color-gold-accent: #fbbf24;

  --color-cream: #fdfbf7;
  --color-sand: #f8f4ec;
  --color-card-bg: #ffffff;

  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-gradient-text: linear-gradient(135deg, #b8860b 0%, #e6ca65 40%, #b8860b 100%);
  --emerald-gradient: linear-gradient(135deg, #032b25 0%, #064e3b 60%, #047857 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-sand);
}
::-webkit-scrollbar-thumb {
  background: #c2b59b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-main);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: #2d3748;
  background-color: var(--color-cream);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--color-cream);
  background-image: radial-gradient(rgba(217, 119, 6, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Locked Scroll State for Cover */
body.cover-locked {
  overflow: hidden !important;
  height: 100vh;
}

/* Font Classes */
.font-serif-title {
  font-family: var(--font-serif);
}
.font-script-accent {
  font-family: var(--font-script);
}
.font-sans-body {
  font-family: var(--font-sans);
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-emerald-gradient {
  background: var(--emerald-gradient);
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 10px 30px -5px rgba(6, 78, 59, 0.06);
}

.glass-card-dark {
  background: rgba(3, 43, 37, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Opening Cover Overlay */
#opening-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease-in-out;
  background-color: var(--color-emerald-dark);
}

#opening-cover.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Audio Player Vinyl Disk Animation */
@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-vinyl {
  animation: spinVinyl 6s linear infinite;
}

.paused-vinyl {
  animation-play-state: paused !important;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(217, 119, 6, 0);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Shimmer Gold Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.btn-gold-shimmer {
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 50%, #d97706 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* Decorative Divider */
.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ornament-line::before,
.ornament-line::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.6), transparent);
}

/* Countdown Card */
.countdown-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

/* Image Frame Border */
.luxury-image-frame {
  position: relative;
  padding: 8px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.12);
  border: 2px solid rgba(217, 119, 6, 0.2);
}

.luxury-image-frame::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: 24px;
  pointer-events: none;
}

/* Floating Action Button */
.floating-audio-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-audio-btn:hover {
  transform: scale(1.1);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: rgba(3, 43, 37, 0.95);
  color: #ffffff;
  border: 1px solid var(--color-gold-accent);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox Modal */
#lightbox-modal {
  transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .ornament-line::before,
  .ornament-line::after {
    width: 35px;
  }
}
