/* ==========================================================================
   Wedding Website: Trọng Tuân & Mỹ Duyên - 03.12.2026
   Style & Design System: Warm Champagne, Ivory, Rose Gold & Deep Espresso
   Anti-slop, Editorial Luxury, High Polish
   ========================================================================== */

:root {
  --color-ivory: #FDFBF7;
  --color-linen: #F7F3EC;
  --color-sand: #EFE7DB;
  --color-gold: #C5A880;
  --color-gold-dark: #9E7A52;
  --color-gold-light: #E8D8C3;
  --color-rose: #93384D;
  --color-rose-light: #FBF0F2;
  --color-espresso: #2A2521;
  --color-muted: #6B635B;
  --color-border: rgba(197, 168, 128, 0.25);
  --color-border-subtle: rgba(42, 37, 33, 0.08);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-cursive: 'Great Vibes', cursive;
  
  --shadow-subtle: 0 4px 20px -2px rgba(42, 37, 33, 0.05);
  --shadow-medium: 0 12px 32px -4px rgba(158, 122, 82, 0.12);
  --shadow-gold: 0 10px 30px -5px rgba(197, 168, 128, 0.25);
  --shadow-glow: 0 0 25px rgba(197, 168, 128, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-ivory);
  color: var(--color-espresso);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--color-ivory);
}

::selection {
  background-color: var(--color-gold-light);
  color: var(--color-espresso);
}

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

/* Font utility classes */
.font-serif {
  font-family: var(--font-serif);
}
.font-sans {
  font-family: var(--font-sans);
}
.font-cursive {
  font-family: var(--font-cursive);
}

/* Gold Gradient & Text Effects */
.gold-gradient-text {
  background: linear-gradient(135deg, #7A5B36 0%, #C5A880 50%, #9E7A52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #C5A880 0%, #DFCFBA 50%, #B8966B 100%);
}

.gold-border {
  border-color: var(--color-border);
}

/* Frosted Glass & Luxury Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 168, 128, 0.22);
  box-shadow: var(--shadow-medium);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 168, 128, 0.28);
}

/* Ornamental Dividers & Borders */
.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.ornament-line::before,
.ornament-line::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  flex: 1;
  max-width: 120px;
}

/* Buttons & Micro-interactions */
.btn-primary {
  background: linear-gradient(135deg, #A8865E 0%, #906F48 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(168, 134, 94, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #96754E 0%, #7E5F38 100%);
  box-shadow: 0 6px 20px rgba(168, 134, 94, 0.45);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-espresso);
  border: 1px solid var(--color-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary:hover {
  background: var(--color-linen);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
}
.btn-secondary:active {
  transform: scale(0.98);
}

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

.spin-vinyl {
  animation: spinSlow 8s linear infinite;
}
.spin-vinyl.paused {
  animation-play-state: paused;
}

/* Equalizer Bars */
@keyframes eqWave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}
.eq-bar {
  width: 3px;
  background: var(--color-gold-dark);
  border-radius: 2px;
  animation: eqWave 1.2s ease-in-out infinite;
}
.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
.eq-bar:nth-child(4) { animation-delay: 0.1s; }

.paused .eq-bar {
  animation-play-state: paused;
  height: 4px;
}

/* Falling Petals Canvas */
#petals-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Image Hover & Frames */
.wedding-photo-card {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.wedding-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(158, 122, 82, 0.2);
}

.photo-overlay {
  background: linear-gradient(to top, rgba(31, 30, 29, 0.7) 0%, rgba(31, 30, 29, 0) 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.wedding-photo-card:hover .photo-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Toast Notification */
.toast-notice {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Subtle Shimmer for Gold Ribbons */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-badge {
  background: linear-gradient(90deg, rgba(197, 168, 128, 0.1) 0%, rgba(197, 168, 128, 0.35) 50%, rgba(197, 168, 128, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

/* Mobile Quick Bar Spacing */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for bottom floating bar */
  }
}

