/* ============================================================
   Custom Variables
   ============================================================ */
:root {
  --gold: #d4af37;
  --gold-light: #f4d47c;
  --gold-dark: #a8871f;
  --rose: #b76e79;
  --burgundy: #4a1a2c;
}

/* ============================================================
   Base
   ============================================================ */
* {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #000;
  overflow-x: hidden;
}
.font-serif { font-family: 'Playfair Display', serif; }
.font-great-vibes { font-family: 'Great Vibes', cursive; }
.font-cormorant { font-family: 'Cormorant Garamond', serif; }
.text-gold { color: var(--gold); }
.bg-gold { background: var(--gold); }
.border-gold { border-color: var(--gold); }

/* ============================================================
   Nav
   ============================================================ */
#topnav {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
}
#topnav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* ============================================================
   Gold Button
   ============================================================ */
.btn-gold {
  background: linear-gradient(135deg, #f4d47c 0%, #d4af37 50%, #a8871f 100%);
  color: #000;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 1s ease-out both; }
.animate-fade-up-delay { animation: fade-up 1s ease-out 0.3s both; }

@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }

@keyframes float-particle {
  0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(100px) rotate(360deg); opacity: 0; }
}
.particle {
  position: absolute;
  color: var(--gold);
  animation: float-particle linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--gold) 0%, #fff 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.pop-anim { animation: heart-pop 0.5s ease-out; }

/* ============================================================
   Wish Card
   ============================================================ */
.wish-card {
  break-inside: avoid;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.wish-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.wish-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 20px 40px -20px rgba(212, 175, 55, 0.2);
}
.wish-emoji {
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 32px;
  background: #000;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ============================================================
   Reaction Buttons
   ============================================================ */
.reaction-btn.reacting {
  animation: heart-pop 0.6s ease-out;
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.15);
}

/* ============================================================
   Signature chip
   ============================================================ */
.sig-chip {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  animation: fade-up 0.5s ease-out;
}
.sig-chip .sig-name { color: var(--gold); font-weight: 500; }

/* ============================================================
   Gift item
   ============================================================ */
.gift-item {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 10px;
  animation: fade-up 0.4s ease-out;
}

/* ============================================================
   Scrollbar
   ============================================================ */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}
::selection { background: var(--gold); color: #000; }

/* ============================================================
   Emoji picker
   ============================================================ */
.emoji-pick.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  transform: scale(1.15);
}

/* ============================================================
   Toast
   ============================================================ */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   Lightbox
   ============================================================ */
#lightbox.active { display: flex !important; animation: fade-up 0.3s ease-out; }

/* ============================================================
   Floating hearts on click
   ============================================================ */
.floating-heart {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 150;
  animation: float-up 1.5s ease-out forwards;
}
@keyframes float-up {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}
