/* ==========================================================================
   Yasmina Turki — Henna Night Luxury Styles
   Refined Royal Velvet Burgundy, Antique Gold & Warm Silk Lace Palette
   ========================================================================== */

:root {
  --color-burgundy: #6B1724;
  --color-burgundy-hover: #520F1A;
  --color-burgundy-light: #FBF0F2;
  --color-crimson: #9E2538;
  --color-crimson-hover: #7A1828;
  --color-crimson-light: #FAF0F2;
  --color-silk: #FDFBFC;
  --color-sand: #FAF5F7;
  --color-ink: #221114;
  --color-ink-muted: #5C383F;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #FAF5F7;
}
::-webkit-scrollbar-thumb {
  background: #C4455C;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6B1724;
}

/* Floating Petals Canvas */
#petals-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

/* Glassmorphism Navbar */
.nav-scrolled {
  background-color: rgba(253, 251, 252, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -2px rgba(107, 23, 36, 0.06);
  border-bottom: 1px solid rgba(158, 37, 56, 0.2);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Attendance Selected Card */
.attendance-card:has(input:checked) {
  border-color: #6B1724;
  background-color: rgba(251, 240, 242, 0.7);
  box-shadow: 0 2px 14px rgba(107, 23, 36, 0.12);
}

/* Soft Fade In */
.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Arabic Typography Enhancements */
html[dir="rtl"] {
  text-align: right;
  letter-spacing: normal !important;
}

html[dir="rtl"] * {
  letter-spacing: normal !important;
}

html[dir="rtl"] .font-serif,
html[dir="rtl"] .font-cinzel,
html[dir="rtl"] .font-sans {
  font-family: 'Amiri', serif !important;
}

html[dir="rtl"] h1 {
  line-height: 1.35;
}

/* Bride Name Calligraphy */
.bride-name-hero {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: #6B1724;
  line-height: 1.1;
  text-align: center;
}

html[dir="rtl"] .bride-name-hero {
  font-family: 'Amiri', serif !important;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 1.25;
}

/* Date Bar Numerals in Henna Style */
.henna-date-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 600;
  color: #6B1724;
  letter-spacing: 0.05em;
}

.henna-date-bar .date-separator {
  color: #9E2538;
  font-weight: 300;
  opacity: 0.8;
}

/* Embossed Henna Card Frame */
.henna-card-frame {
  position: relative;
  background-color: #FDFBFC;
  border-radius: 28px;
  box-shadow: 0 15px 45px -5px rgba(107, 23, 36, 0.1), 0 0 0 1.5px rgba(158, 37, 56, 0.25);
}

.henna-card-inner-border {
  border: 1.5px solid rgba(158, 37, 56, 0.32);
  border-radius: 20px;
}

.henna-card-dashed-border {
  border: 1px dashed rgba(107, 23, 36, 0.28);
  border-radius: 14px;
}

/* Luxury Opening Envelope Reveal */
#invitationOverlay {
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s;
}

#invitationOverlay.is-revealed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-panel {
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.intro-panel-left {
  left: 0;
  border-right: 1.5px solid rgba(158, 37, 56, 0.35);
  box-shadow: 6px 0 30px rgba(74, 14, 24, 0.06);
}

.intro-panel-right {
  right: 0;
  border-left: 1.5px solid rgba(158, 37, 56, 0.35);
  box-shadow: -6px 0 30px rgba(74, 14, 24, 0.06);
}

#invitationOverlay.is-revealed .intro-panel-left {
  transform: translateX(-100%);
}

#invitationOverlay.is-revealed .intro-panel-right {
  transform: translateX(100%);
}

#invitationOverlay.is-revealed .intro-center {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Henna Stamp / Floral Crest */
.henna-crest {
  filter: drop-shadow(0 4px 12px rgba(107, 23, 36, 0.18));
}
