/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Cormorant+Infant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
  --color-bg-warm: #FAF8F5;
  --color-bg-dark: #1E232B;
  --color-text-dark: #2C3E50;
  --color-text-muted: #5F6C7D;
  --color-text-light: #F4F6F8;
  
  /* Accent Colors */
  --color-gold-base: #C5A059;
  --color-gold-light: #E5C384;
  --color-gold-dark: #A58039;
  --color-gold-rgb: 197, 160, 89;
  --color-olive-base: #5A6B53;
  --color-olive-light: #7E9675;
  --color-olive-dark: #3F4B39;
  
  /* UI Elements */
  --font-serif: 'Cormorant Infant', 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(250, 248, 245, 0.75);
  --glass-border: rgba(197, 160, 89, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-warm);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
}

p {
  font-weight: 300;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

/* Premium Gold Text Gradient */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold-light) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Elegant Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-gold-base);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-gold-base);
  color: var(--color-gold-dark);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(var(--color-gold-rgb), 0.05);
  color: var(--color-gold-base);
  transform: translateY(-2px);
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--color-gold-base);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-gold-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
  }

  .nav-container {
    position: relative;
    width: 100%;
    max-width: none;
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }

  .nav-logo {
    font-size: 1.35rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    padding: 0.35rem 0 0.5rem;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    z-index: 999;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.9rem 1.15rem;
    font-size: 0.82rem;
    opacity: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    white-space: nowrap;
  }

  .nav-links a i {
    width: 1.1rem;
    text-align: center;
    color: var(--color-gold-base);
    flex-shrink: 0;
  }

  .nav-links a.active {
    background: rgba(var(--color-gold-rgb), 0.08);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(8px);
  transform: scale(1.05); /* Scales slightly to hide blurred edges */
  opacity: 0.35; /* Subtle backdrop appearance */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(30, 35, 43, 0.4) 0%, rgba(30, 35, 43, 0.8) 100%),
              radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  animation: fadeIn 1.8s ease-out;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--color-gold-light);
}

.hero-title {
  font-family: var(--font-script);
  font-size: 8rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 400;
  text-transform: none;
}

.hero-date {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  color: var(--color-gold-light);
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.countdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-3px);
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-gold-light);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Section Common Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold-base);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--color-text-dark);
  font-weight: 400;
  text-transform: none;
}

.section-divider {
  width: 80px;
  height: 1px;
  background: var(--color-gold-base);
  margin: 1.5rem auto 0;
  position: relative;
}

.section-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-bg-warm);
  padding: 0 0.5rem;
  color: var(--color-gold-base);
  font-size: 0.8rem;
}

/* About / Story Section */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-text h3 {
  font-size: 2rem;
  color: var(--color-olive-dark);
}

.story-text p {
  color: var(--color-text-muted);
}

.story-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}

.story-image-container:hover .story-img {
  transform: scale(1.05);
}

/* Details Cards / Bento Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.details-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.details-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--color-gold-rgb), 0.5);
  box-shadow: var(--shadow-lg);
}

.details-icon {
  font-size: 2.5rem;
  color: var(--color-gold-base);
}

.details-card h3 {
  font-size: 1.8rem;
  color: var(--color-text-dark);
}

.details-info {
  font-weight: 300;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details-info strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text-dark);
  font-weight: 400;
}

/* RSVP Section & Form */
.rsvp-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  box-shadow: var(--shadow-lg);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text-dark);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-gold-base);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--color-gold-rgb), 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Custom Radio Group for Attendance */
.attendance-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.attendance-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.attendance-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.attendance-card:hover {
  border-color: var(--color-gold-light);
}

.attendance-card.selected {
  border-color: var(--color-gold-base);
  background: rgba(var(--color-gold-rgb), 0.05);
  box-shadow: 0 0 0 1px var(--color-gold-base);
}

.attendance-card .card-title {
  font-weight: 500;
  font-size: 0.95rem;
}

.attendance-card .card-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Guest list section */
.rsvp-details-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.rsvp-details-fields.open {
  max-height: 500px;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

/* Toast System (Toastify Alternative) */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.toast {
  background: #fff;
  color: var(--color-text-dark);
  border-left: 4px solid var(--color-gold-base);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  min-width: 300px;
  max-width: 450px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast-error {
  border-left-color: #E74C3C;
}

.toast-success {
  border-left-color: #2ECC71;
}

/* Footer */
footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  text-align: center;
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-gold-light);
  margin-bottom: 1rem;
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.footer-info {
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

/* ==================================================
   GALLERY PAGE SPECIFIC STYLES
   ================================================== */
.gallery-layout {
  padding-top: 8rem;
}

.upload-card {
  max-width: 600px;
  margin: 0 auto 4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px dashed var(--color-gold-base);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.upload-card:hover {
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-lg);
}

.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.upload-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 96px;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

.upload-action-btn i {
  font-size: 1.5rem;
  color: var(--color-gold-base);
}

.upload-action-btn:hover,
.upload-action-btn:active {
  transform: translateY(-2px);
  border-color: var(--color-gold-base);
  box-shadow: var(--shadow-sm);
}

.upload-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* File Input hidden */
.file-input {
  display: none;
}

/* Progress bar style */
.upload-progress-container {
  width: 100%;
  margin-top: 1.5rem;
  display: none;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-base), var(--color-gold-light));
  transition: width 0.2s ease-out;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  display: block;
}

/* Upload filter dialog */
dialog.filter-dialog {
  width: min(92vw, 480px);
  max-width: 92vw;
  max-height: 92dvh;
  padding: 0;
}

.filter-modal-content {
  position: relative;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.filter-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.filter-modal-title {
  font-family: var(--font-serif);
  color: var(--color-text-dark);
  font-weight: 600;
  text-align: center;
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
  padding-right: 2rem;
}

.filter-preview-container {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.filter-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.filter-opt-btn {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.35rem;
  min-height: 44px;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.filter-opt-btn.active {
  background: var(--color-bg-warm);
  border-color: var(--color-gold-base);
}

.kvkk-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  cursor: pointer;
}

.kvkk-consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--color-gold-base);
}

.kvkk-consent a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

.kvkk-details {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  background: var(--color-bg-warm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.filter-actions .btn {
  flex: 1;
  min-height: 48px;
  font-size: 0.9rem;
}

.filter-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Masonry Photo Grid */
.photo-grid {
  columns: 4 250px;
  column-gap: 1.5rem;
  width: 100%;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--color-gold-rgb), 0.25);
}

.photo-item img {
  width: 100%;
  display: block;
  height: auto;
  transition: transform 0.6s ease;
}

.photo-item:hover img {
  transform: scale(1.03);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-time {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Empty State */
.empty-gallery {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(var(--color-gold-rgb), 0.4);
}

/* ==================================================
   LIGHTBOX DIALOG (MODERN MODAL) WITH ENTRY/EXIT TRANSITIONS
   ================================================== */
dialog.lightbox {
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  outline: none;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

dialog.lightbox .lightbox-content {
  position: relative;
  background: var(--color-bg-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  max-width: 100%;
  max-height: 85vh;
}

dialog.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

dialog.lightbox .lightbox-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

dialog.lightbox .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

dialog.lightbox .close-btn:hover {
  background: rgba(var(--color-gold-rgb), 0.8);
}

/* Dialog Animation styles complying with guidelines */
dialog.lightbox[open] {
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.95);
  }
}

dialog.lightbox {
  opacity: 0;
  transform: scale(0.95);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

/* Backdrop styles with entry/exit animations */
dialog.lightbox::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition:
    display 0.35s allow-discrete,
    overlay 0.35s allow-discrete,
    background-color 0.35s ease-out,
    backdrop-filter 0.35s ease-out;
}

dialog.lightbox[open]::backdrop {
  background-color: rgba(15, 18, 23, 0.85);
  backdrop-filter: blur(8px);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}

/* ==================================================
   PROJECTOR SLIDESHOW STYLES (`projector.html`)
   ================================================== */
.projector-body {
  background-color: #0b0c10;
  height: 100vh;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0c10;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.ken-burns .slide-img {
  animation: kenburns 12s ease-in-out infinite alternate;
}

.projector-header {
  position: absolute;
  top: 2rem;
  left: 3rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.projector-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--color-gold-light);
}

.projector-instructions {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.projector-qr-preview {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.projector-text {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
}

.projector-text strong {
  color: var(--color-gold-light);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* ==================================================
   PRINT QR CARD DESIGN SPECIFIC STYLES (`qr-card.html`)
   ================================================== */
.qr-designer-layout {
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.qr-card-preview-area {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

/* A5/A6 Table Card Mockup */
.qr-table-card {
  width: 380px;
  background: #fff;
  border: 12px double var(--color-gold-base);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  background-image: 
    radial-gradient(circle at 0 0, rgba(197,160,89,0.03) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(197,160,89,0.03) 0%, transparent 60%);
}

.qr-table-card::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  pointer-events: none;
}

.card-header-names {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--color-text-dark);
}

.card-divider {
  font-size: 0.9rem;
  color: var(--color-gold-base);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.card-divider::before, .card-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(197, 160, 89, 0.3);
}

.card-body-text {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  line-height: 1.5;
  font-weight: 400;
}

.card-body-text h4 {
  font-size: 1.3rem;
  color: var(--color-gold-dark);
  margin-bottom: 0.8rem;
}

.card-qr-container {
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.card-footer-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-gold-dark);
}

.card-controls {
  max-width: 500px;
  margin: 2rem auto;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-controls label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

/* ==================================================
   ANIMATIONS & MEDIA QUERIES & PRINT MEDIA
   ================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  dialog.lightbox {
    transform: none;
    transition-duration: 0.1s;
  }
  @starting-style {
    dialog.lightbox[open] {
      transform: none;
    }
  }
  .ken-burns .slide-img {
    animation: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .story-image-container {
    order: -1;
  }
  .story-img {
    height: 350px;
  }
  .hero-title {
    font-size: 5.5rem;
  }
  .countdown {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .countdown-item {
    min-width: 70px;
    padding: 0.8rem;
  }
  .countdown-value {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 2.8rem;
  }
  .rsvp-wrapper {
    padding: 2.5rem 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .attendance-group {
    grid-template-columns: 1fr;
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .toast {
    min-width: auto;
    width: 100%;
  }
  .gallery-layout {
    padding-top: 5.5rem;
  }
  .upload-card {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1rem;
  }
  .upload-actions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .upload-action-btn {
    min-height: 72px;
    flex-direction: row;
    justify-content: center;
  }
  .photo-grid {
    columns: 2 140px;
    column-gap: 0.75rem;
  }
  .photo-item {
    margin-bottom: 0.75rem;
  }
  .photo-overlay {
    opacity: 1;
    padding: 0.75rem 0.6rem 0.5rem;
  }
  dialog.filter-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
  }
  .filter-modal-content {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }
  .filter-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-actions {
    flex-direction: column;
  }
}

/* Print Stylesheet overrides for A5/A6 Table Card */
@media print {
  body * {
    visibility: hidden;
  }
  .qr-table-card, .qr-table-card * {
    visibility: visible;
  }
  .qr-table-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: none;
    border-color: #000 !important;
    background: #fff;
    width: 100%;
    max-width: 148mm; /* A5 size */
    page-break-inside: avoid;
  }
  @page {
    size: A5 portrait;
    margin: 0;
  }
}

/* ==================================================
   TIMELINE SECTION STYLES (HİKAYEMİZ)
   ================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 1rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: rgba(197, 160, 89, 0.3); /* gold line */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* Timeline dot */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  right: -7px;
  background-color: var(--color-gold-base);
  border: 2px solid var(--color-bg-warm);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-smooth);
}

/* Left & Right positioning */
.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
  text-align: left;
}

/* Correct dot position for right side */
.timeline-right::after {
  left: -7px;
}

/* Timeline Card */
.timeline-card {
  padding: 1.8rem;
  background: #fff;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--color-gold-rgb), 0.25);
}

.timeline-item:hover::after {
  background-color: var(--color-gold-light);
  transform: scale(1.3);
}

/* Image inside timeline card */
.timeline-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  display: block;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-img {
  filter: brightness(1.03);
}

/* Content typography */
.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  display: block;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Responsive timeline for screens smaller than 768px */
@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 10px;
    text-align: left;
  }
  
  .timeline-left {
    left: 0;
  }
  
  .timeline-right {
    left: 0;
  }
  
  .timeline-item::after {
    left: 13px;
    right: auto;
    top: 25px;
  }
}

/* ==================================================
   FLOATING MUSIC PLAYER & CUSTOM WIDGET STYLES
   ================================================== */
.floating-music-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-gold-dark);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.floating-music-btn:hover {
  transform: scale(1.1);
  background: #fff;
  color: var(--color-gold-base);
}

.floating-music-btn.playing {
  animation: rotateMusic 4s linear infinite;
  background: var(--color-gold-base);
  color: #fff;
  border-color: var(--color-gold-light);
}

.floating-music-btn.pulse-glow {
  box-shadow: 0 0 0 0 rgba(var(--color-gold-rgb), 0.7);
  animation: musicPulse 2s infinite;
}

@keyframes rotateMusic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes musicPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--color-gold-rgb), 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(var(--color-gold-rgb), 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--color-gold-rgb), 0);
  }
}

/* Likes badge shown on grid cards */
.photo-likes-badge {
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  color: #fff;
}

/* Lightbox Split Layout styling */
dialog.lightbox .split-lightbox {
  display: grid;
  grid-template-columns: 1fr 340px;
  width: 950px;
  max-width: 95vw;
  height: 80vh;
  max-height: 80vh;
  background: var(--color-bg-dark);
}

.lightbox-image-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0d0f12;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.lightbox-image-area img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-height: 100% !important;
}

.lightbox-footer-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

.lightbox-interaction-area {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-warm);
  padding: 2.2rem 1.8rem;
  height: 100%;
  overflow: hidden;
  color: var(--color-text-dark);
}

.interaction-title {
  font-size: 1.6rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

/* Like actions styling */
.like-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.3rem;
}

.like-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  outline: none;
}

.like-btn:hover {
  transform: scale(1.15);
  color: #E74C3C;
}

.like-count {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

/* Comments List rendering */
.comments-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Custom scrollbar for comments stream */
.comments-list::-webkit-scrollbar {
  width: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: var(--color-gold-light);
  border-radius: 4px;
}

.comment-item {
  background: rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.comment-header strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

.comment-time {
  color: var(--color-text-muted);
  font-size: 0.65rem;
}

.comment-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  word-break: break-word;
  line-height: 1.4;
}

/* Comment inputs form container */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Responsive adjustment for split dialog on smaller viewports */
@media (max-width: 900px) {
  dialog.lightbox .split-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 320px;
    width: 92vw;
    height: 85vh;
    max-height: 85vh;
  }
  
  .lightbox-interaction-area {
    padding: 1.5rem 1.2rem;
  }
  
  .lightbox-image-area img {
    max-height: 40vh !important;
  }
}

/* ==================================================
   ZARF PRELOADER & INTRO STYLES
   ================================================== */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-warm);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
  overflow: hidden;
}

.envelope-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-container {
  width: 90%;
  max-width: 450px;
  perspective: 1200px;
}

.envelope-card {
  position: relative;
  width: 100%;
  height: 320px; /* Taller height for premium styling */
  background: #fdfcf7;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 100px rgba(197, 160, 89, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Front Pocket of Envelope */
.envelope-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(135deg, #ffffff 0%, #FAF8F5 100%);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.02);
  z-index: 4;
  clip-path: polygon(0 40%, 50% 10%, 100% 40%, 100% 100%, 0 100%);
}

.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: #f6f3eb;
  border: 1px solid rgba(197, 160, 89, 0.12);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  z-index: 5;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), z-index 0.8s;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.02);
}

.envelope-card.open .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1; /* Flips behind card on open */
}

/* The Invitation Paper Card Inside (slides out) */
.envelope-paper {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transform: translateY(0);
  z-index: 2; /* sit inside behind front and flap initially */
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), z-index 0.8s;
}

.envelope-card.open .envelope-paper {
  transform: translateY(-120px) scale(1.02);
  z-index: 6; /* raises above envelope-front to make buttons clickable */
}

.paper-header {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.paper-names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.paper-divider {
  color: var(--color-gold-base);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.paper-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.paper-location {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.btn-gold-seal {
  background: var(--color-gold-base);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
  transition: var(--transition-smooth);
  opacity: 0;
  visibility: hidden;
}

.envelope-card.open .btn-gold-seal {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.4s;
}

.btn-gold-seal:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(197, 160, 89, 0.4);
}

.wax-seal {
  position: absolute;
  top: 60%; /* Centered on flap vertex */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85px;
  height: 85px;
  background: radial-gradient(circle at 30% 30%, #d4223b 0%, #a31123 60%, #7d0a17 100%);
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(163, 17, 35, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FAF8F5;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
  border: 2px solid #b31427;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.08) rotate(5deg);
}

.envelope-card.open .wax-seal {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.seal-initials {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.seal-prompt {
  font-family: var(--font-sans);
  font-size: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  opacity: 0.9;
}

/* ==================================================
   WEDDING PROGRAM TIMELINE STYLES
   ================================================== */
.program-timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 1rem 0;
}

.program-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(197, 160, 89, 0) 0%, var(--color-gold-base) 15%, var(--color-gold-base) 85%, rgba(197, 160, 89, 0) 100%);
  transform: translateX(-50%);
}

.program-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 3.5rem;
}

.program-item:last-child {
  margin-bottom: 0;
}

.program-time {
  width: 45%;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  padding-right: 2.5rem;
}

.program-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  background: var(--color-bg-warm);
  border: 1px solid var(--color-gold-base);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-gold-base);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  z-index: 2;
  transition: var(--transition-smooth);
}

.program-item:hover .program-icon {
  background: var(--color-gold-base);
  color: #fff;
  box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
  transform: translateX(-50%) scale(1.1);
}

.program-details {
  width: 45%;
  padding-left: 2.5rem;
  text-align: left;
}

.program-details h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.program-details p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.program-item:nth-child(even) {
  flex-direction: row-reverse;
}

.program-item:nth-child(even) .program-time {
  text-align: left;
  padding-left: 2.5rem;
  padding-right: 0;
}

.program-item:nth-child(even) .program-details {
  text-align: right;
  padding-right: 2.5rem;
  padding-left: 0;
}

@media (max-width: 768px) {
  .program-timeline::before {
    left: 20px;
    transform: none;
  }
  
  .program-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
    margin-bottom: 2.5rem;
  }
  
  .program-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }
  
  .program-time, .program-item:nth-child(even) .program-time {
    width: auto;
    text-align: left;
    padding: 0;
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
  }
  
  .program-icon, .program-item:nth-child(even) .program-icon {
    left: 20px;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  
  .program-item:hover .program-icon {
    transform: translateX(-50%) scale(1.05);
  }
  
  .program-details, .program-item:nth-child(even) .program-details {
    width: 100%;
    padding: 0;
    text-align: left;
  }
}

/* ==================================================
   DIGITAL GUEST BOOK STYLES
   ================================================== */
.guestbook-wall-wrapper {
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.guestbook-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.guestbook-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.guestbook-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 160, 89, 0.35);
}

.guestbook-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(197, 160, 89, 0.12);
  line-height: 1;
}

.guestbook-msg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.guestbook-author {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guestbook-date {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.guestbook-loading, .guestbook-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
