/* Travel page background (baby blue mist) */
.travel-bg {
  background: linear-gradient(135deg, rgba(234,244,255,1) 0%, rgba(228,240,255,1) 50%, rgba(220,236,255,1) 100%);
  min-height: 100vh;
}

.shadow-sm { box-shadow: 0 6px 16px -8px rgba(17,24,39,0.25); }
/* Theme variables for consistent palette */
:root {
  --text: #0f172a;
  --muted: #6b7280;
  --rose-50: #fff7fb;
  --rose-100: #ffeaf2;
  --rose-500: #e11d48;
  --rose-700: #9d174d;
  --blue-50: #f0f9ff;
  --blue-100: #e0f2fe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --card-border: rgba(17,24,39,0.08);
}
/* Reset corrupted styles and provide clean, modern theme */
body {
  background-color: #f7f6fb;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  backdrop-filter: saturate(115%) blur(0px);
}

.card {
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.95);
}

.couple-section { margin-top: 1rem; }
.couple-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 6px solid rgba(255,255,255,0.8);
}
.couple-card {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.6);
  border-radius: 1rem;
}
.bride-card h3 { color: #b91c1c; }
.groom-card h3 { color: #1d4ed8; }

/* Memories widget */
.memories-widget { z-index: 1040; }
.memories-card { width: 220px; opacity: 0.95; }
.memories-card h6 { font-weight: 600; }

/* Hero section */
.hero { max-width: 920px; margin-left: auto; margin-right: auto; }
.hero-container {
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-content { padding: 16px; }
.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.hero-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  color: #f7f5f8; /* off-white with pink tint */
}
.hero-title .amp { color: #dc4d6b; }
.hero-subtitle {
  margin-top: 0.5rem;
  color: #ffffff; /* improve contrast */
  font-size: clamp(1.1rem, 5.5vw, 2rem);
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35); /* legibility on photos */
}
.script-subtitle {
  font-family: 'Monsieur La Doulaise', cursive;
  font-weight: 400;
  font-size: clamp(1.4rem, 7.5vw, 2.6rem);
}
.section-subtitle { color: var(--muted); }

/* Countdown */
.countdown { display: inline-flex; gap: 1rem; }
.cd-item { background: transparent; border: none; border-radius: 0.75rem; padding: 0.5rem 0.75rem; box-shadow: none; }
.cd-item span { font-weight: 700; font-size: 1.125rem; color: #ffffff; display: block; }
.cd-item small { font-size: 0.75rem; color: #e5e7eb; display: block; }

/* Top-right countdown widget */
.countdown-widget {
  position: fixed;
  top: 12px;
  right: 10px;
  z-index: 1050;
  background: rgba(15,23,42,0.45);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px -10px rgba(15,23,42,0.5);
  padding: 6px 8px;
}

/* Ceremony (baby blue mist) */
.ceremony-bg {
  background: linear-gradient(135deg, rgba(234,244,255,1) 0%, rgba(228,240,255,1) 50%, rgba(220,236,255,1) 100%);
  min-height: 100vh;
}
.ceremony-card {
  background: #ffffff; /* cards/boxes to white */
  border: 1px solid #cfe4ff; /* light blue border */
}
.ceremony-card .card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #0b2a4a; /* headings to royal navy */
}
.ceremony-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ceremony-block { background: #ffffff; border: 1px solid #cfe4ff; border-radius: 0.75rem; padding: 1rem; }
.ceremony-heading { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: #0b2a4a; margin-bottom: 0.75rem; }
.ceremony-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #cfe4ff;
}
.ceremony-icon { font-size: 1.25rem; }
.label { font-size: 0.85rem; color: #6b7280; }
.value { font-weight: 600; color: #4b5563; /* normal text to slate gray */ }

.ceremony-bg .btn-rose,
.travel-bg .btn-rose {
  background-color: #3b82f6; /* soft royal blue */
  color: #fff;
  border: 1px solid #3b82f6;
}
.ceremony-bg .btn-rose:hover,
.travel-bg .btn-rose:hover { background-color: #2563eb; border-color: #2563eb; }
.ceremony-bg .btn-outline-rose,
.travel-bg .btn-outline-rose { color: #3b82f6; border: 1px solid #3b82f6; }
.ceremony-bg .btn-outline-rose:hover,
.travel-bg .btn-outline-rose:hover { background-color: #2563eb; color: #fff; border-color: #2563eb; }

/* Wishes */
.wishes-card {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  border: 1px solid rgba(29, 78, 216, 0.16);
}
.wishes-form { max-width: 680px; margin-left: auto; margin-right: auto; }
.wish-item { border: 1px solid rgba(17, 24, 39, 0.08); }

/* Buttons */
.btn-primary { background-color: var(--blue-600); border-color: var(--blue-600); }
.btn-primary:hover { background-color: var(--blue-700); border-color: var(--blue-700); }
.wishes-btn { box-shadow: 0 10px 20px -10px rgba(29, 78, 216, 0.35); }

/* Compact floating wishes widget */
.wishes-widget {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 300px;
  z-index: 1050;
}
.wishes-widget .card {
  border-radius: 12px;
  background: rgba(255,255,255,0.95);
}
.wishes-widget .card-title { font-size: 1rem; margin-bottom: 0.25rem; }
.wishes-widget .section-subtitle { font-size: 0.8rem; }
.wishes-widget .form-label { font-size: 0.8rem; }
.wishes-widget .form-control {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}
.wishes-widget .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Tweaks */
h3 { font-weight: 600; }
footer { color: var(--muted); }

/* Auth page styling */
.auth-card { max-width: 560px; margin-left: auto; margin-right: auto; }
.auth-form .form-control { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.auth-form .btn-lg { box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.35); }

/* Admin page polish */
.admin-stat { border: 1px solid var(--card-border); }
.admin-search { max-width: 260px; }
.admin-form-card { border: 1px solid var(--card-border); }

/* Shayari styles removed per request */

/* Pro touches: dividers and subtle animation */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(17,24,39,0.12), transparent);
  margin: 1rem 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 500ms ease forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Navbar refinement */
.navbar-brand { font-family: 'Playfair Display', Georgia, serif; letter-spacing: 0.02em; }
.nav-links .nav-link {
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 1;
}
.nav-links .nav-link.travel-link {
  white-space: nowrap; /* keep “Travel & Stay” on one line */
  letter-spacing: 0.01em;
}
.nav-links .nav-link:hover {
  color: #0a0a0a;
  background: #ffffff;
  border-color: transparent;
}
.nav-links .btn.btn-outline-primary.btn-sm {
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  border: none;
  box-shadow: none;
}
.navbar.bg-transparent {
  backdrop-filter: saturate(1.1) blur(6px);
  position: relative;
  z-index: 10;
}

/* Ceremony page enhancements */
.ceremony-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 24px;
}
.ceremony-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #0b2a4a; /* royal navy */
}
.ceremony-hero p { color: var(--muted); }

.timeline {
  position: relative;
  margin: 16px auto;
  max-width: 760px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cfe4ff; /* light blue border */
}
.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 16px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6; /* soft royal blue */
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}
.timeline-card {
  background: #ffffff;
  border: 1px solid #cfe4ff;
  border-radius: 12px;
  padding: 12px 16px;
}

/* Scope normal text to slate gray on ceremony & travel containers */
.ceremony-bg .page-container,
.travel-bg .page-container { color: #4b5563; }

/* Mobile responsive tweaks */
@media (max-width: 576px) {
  /* Stack ceremony items in a single column on mobile */
  .ceremony-grid { grid-template-columns: 1fr; }

  /* Smaller hero title on mobile for better fit */
  .hero-title { font-size: 2.3rem !important; }

  /* Prevent pills from causing horizontal overflow */
  .pill-badges { justify-content: flex-start; }
  .pill { max-width: 100%; }

  /* Tighten countdown widget spacing on small screens */
  .countdown-widget { top: 8px; right: 8px; padding: 4px 6px; }

  /* Ensure navbar brand and toggler fit comfortably */
  .navbar .navbar-brand { font-size: 1rem; }
}

@media (max-width: 768px) {
  .ceremony-grid { grid-template-columns: 1fr; }
}

/* Larger hero title on laptops/desktops */
@media (min-width: 992px) {
  .hero-title { font-size: 5.5rem !important; }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,0.12);
  box-shadow: 0 6px 16px -8px rgba(17,24,39,0.25);
}

/* Drive folder iframe */
.drive-embed iframe {
  width: 100%;
  height: 480px;
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
}
@media (max-width: 576px) {
  .drive-embed iframe { height: 360px; }
}
