/* ═══════════════════════════════════════════════════════════════════════════
   WEDDING WEBSITE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* CSS Custom Properties - These get overwritten by config.js */
:root {
  --primary: #2d5a4a;
  --secondary: #c9a959;
  --background: #faf9f7;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESET & BASE STYLES
   ───────────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────────────────── */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.main-nav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.main-nav.scrolled .nav-logo {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}

.main-nav.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.main-nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* Hide close button on desktop */
.nav-close {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--text);
    font-size: 1.1rem;
  }
  
  /* Close button inside the drawer - only visible on mobile */
  .nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    transition: all 0.2s;
  }
  
  .nav-close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary);
  }
  
  /* Overlay when nav is open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .nav-overlay.active {
    display: block;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, 
      rgba(45, 90, 74, 0.95) 0%, 
      rgba(45, 90, 74, 0.85) 50%,
      rgba(30, 60, 50, 0.95) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  background-size: cover, 200px 200px;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(201, 169, 89, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(201, 169, 89, 0.1) 0%, transparent 40%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--secondary);
  margin: 30px auto;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 50px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--secondary);
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .countdown {
    gap: 15px;
  }
  .countdown-number {
    font-size: 2rem;
  }
  .countdown-label {
    font-size: 0.7rem;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--secondary);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 20px 50px;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   SECTION STYLES
   ───────────────────────────────────────────────────────────────────────── */

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 20px auto 0;
}

.section-subtitle {
  max-width: 720px;
  margin: -40px auto 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ornament {
  font-size: 2rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 30px;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  background: var(--white);
}

.welcome-text {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.9;
  color: var(--text-light);
}

.hashtag {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--secondary);
}

/* Story Section */
.story-section {
  background: var(--background);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  text-align: center;
  white-space: pre-line;
}

/* Story picture-book carousel */
.story-book-carousel {
  margin-top: 3.5rem;
  margin-left: auto;
  margin-right: auto;
}

.story-book-carousel[hidden] {
  display: none !important;
}

.story-book-kicker {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.story-book-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.story-book-track {
  --story-card-width: clamp(180px, 26vw, 260px);
  --story-scroll-duration: 34s;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: max-content;
  animation: story-polaroid-loop var(--story-scroll-duration) linear infinite;
  will-change: transform;
  padding: 0.75rem 0.25rem 1rem;
}

.story-book-track:hover {
  animation-play-state: paused;
}

.story-book-track.story-book-track--no-motion {
  animation: none;
}

.story-book-carousel.story-book-carousel--no-motion .story-book-viewport {
  overflow-x: auto;
  mask-image: none;
}

.story-book-slide {
  flex: 0 0 var(--story-card-width);
  margin: 0;
  background: #fff;
  border: 1px solid rgba(45, 90, 74, 0.12);
  border-radius: 3px;
  padding: 0.5rem 0.5rem 1.05rem;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
  transform-origin: center bottom;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease;
}

.story-book-slide:hover {
  transform: rotate(var(--tilt, 0deg)) translateY(-4px) scale(1.01);
}

.story-book-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(45, 90, 74, 0.18);
}

@keyframes story-polaroid-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .story-book-track {
    --story-card-width: clamp(145px, 45vw, 220px);
    --story-scroll-duration: 24s;
    gap: 0.75rem;
  }

  .story-book-slide {
    padding: 0.45rem 0.45rem 0.85rem;
  }
}

/* Schedule Section */
.schedule-section {
  background: var(--primary);
  color: var(--white);
}

.schedule-section .section-title {
  color: var(--white);
}

.schedule-timeline {
  display: grid;
  gap: 40px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.schedule-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.schedule-time {
  text-align: right;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--secondary);
}

.schedule-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1;
}

.schedule-content {
  text-align: left;
}

.schedule-event {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.schedule-description {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .schedule-timeline::before {
    left: 25px;
  }
  
  .schedule-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
  }
  
  .schedule-time {
    display: none; /* Hide from grid, we'll show it in content */
  }
  
  .schedule-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
    margin-top: 5px;
  }
  
  .schedule-content {
    flex: 1;
  }
  
  /* Show time above the event title on mobile */
  .schedule-content::before {
    content: attr(data-time);
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 5px;
  }
}

/* Venue Section */
.venue-section {
  background: var(--white);
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.venue-card {
  text-align: center;
  padding: 50px 40px;
  background: var(--background);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.venue-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.venue-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.venue-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 15px;
}

.venue-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.venue-address {
  color: var(--text-light);
  margin-bottom: 20px;
}

.venue-link {
  font-weight: 600;
  color: var(--secondary);
}

/* Links Section */
.links-section {
  background: var(--background);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.link-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.link-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.link-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.link-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: 
    linear-gradient(135deg, rgba(45, 90, 74, 0.95), rgba(30, 60, 50, 0.95)),
    var(--primary);
  color: var(--white);
  text-align: center;
}

.cta-section .section-title {
  color: var(--white);
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────── */

.main-footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer-date {
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer-hashtag {
  font-style: italic;
  color: var(--secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page Header (for non-home pages) */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   DETAILS PAGE
   ───────────────────────────────────────────────────────────────────────── */

.details-nav + .section,
#schedule,
#dress-code,
#accommodation,
#travel,
#faqs {
  scroll-margin-top: 140px;
}

@media (max-width: 600px) {
  .details-nav + .section,
  #schedule,
  #dress-code,
  #accommodation,
  #travel,
  #faqs {
    scroll-margin-top: 190px;
  }
}

.details-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 80px;
  z-index: 100;
}

.details-nav-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  flex-wrap: wrap;
}

.details-nav-list a {
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  padding: 10px 0;
  position: relative;
}

.details-nav-list a:hover,
.details-nav-list a.active {
  color: var(--primary);
}

.details-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}

.details-nav-list a:hover::after,
.details-nav-list a.active::after {
  width: 100%;
}

/* Dress Code */
.dress-code-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.9;
  white-space: normal;
}

.dress-code-content p {
  margin: 0 0 18px;
}

.dress-code-content p:last-child {
  margin-bottom: 0;
}

.dress-code-content strong {
  color: var(--primary);
}

/* Hotels Grid */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.hotel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.hotel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.hotel-name {
  font-size: 1.3rem;
  margin: 0;
}

.hotel-price {
  color: var(--secondary);
  font-weight: 600;
}

.hotel-distance {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.hotel-description {
  color: var(--text-light);
  margin-bottom: 20px;
}

.hotel-booking-code {
  background: var(--background);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hotel-booking-code strong {
  color: var(--primary);
}

.hotel-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hotel-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
}

/* Travel Section */
.travel-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  white-space: pre-line;
}

.travel-content strong {
  color: var(--primary);
}

/* FAQs */
.faqs-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 25px 30px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 30px 25px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────────────────────
   RSVP PAGE
   ───────────────────────────────────────────────────────────────────────── */

.rsvp-section {
  background: var(--background);
}

.rsvp-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 74, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .rsvp-form-container {
    padding: 30px 20px;
  }
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.attendance-option {
  position: relative;
}

.attendance-option input {
  position: absolute;
  opacity: 0;
}

.attendance-option label {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-content: center;
  justify-items: center;
  gap: 4px;
  padding: 20px;
  min-height: 154px;
  background: var(--background);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.attendance-option .attendance-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.attendance-option input:checked + label {
  border-color: var(--primary);
  background: rgba(45, 90, 74, 0.05);
}

.attendance-option label:hover {
  border-color: var(--secondary);
}

.guest-section {
  background: var(--background);
  padding: 25px;
  border-radius: var(--radius);
  margin-top: 25px;
}

.guest-section h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.add-guest-btn {
  background: none;
  border: 2px dashed var(--secondary);
  color: var(--secondary);
  padding: 15px;
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}

.add-guest-btn:hover {
  background: rgba(201, 169, 89, 0.1);
}

.guest-entry {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  position: relative;
}

.remove-guest {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 10px;
}

.remove-guest:hover {
  color: #e74c3c;
}

.form-submit {
  margin-top: 30px;
}

.form-submit .btn {
  width: 100%;
}

.form-message {
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  text-align: center;
}

.form-message.success {
  background: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn.disabled,
a.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.no-email-row {
  margin-top: -10px;
}

.no-email-row label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  font-weight: 500;
  width: 100%;
}

.no-email-row input[type="checkbox"] {
  margin: 0;
}

.no-email-row span {
  text-align: left;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────
   GIFTS PAGE
   ───────────────────────────────────────────────────────────────────────── */

.gifts-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-light);
  white-space: pre-line;
}

/* Gift Pools */
.pools-section {
  background: var(--white);
}

.pools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.pool-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.pool-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
}

.pool-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pool-description {
  color: var(--text-light);
  margin-bottom: 25px;
}

.pool-progress {
  margin-bottom: 25px;
}

.progress-bar {
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

.progress-text strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.pool-contribute {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pool-contribute input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
  min-width: 160px;
}

.pool-contribute input:focus {
  outline: none;
  border-color: var(--primary);
}

.pool-contribute button {
  padding: 12px 25px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  flex: 1 1 100%;
}

.pool-contribute button:hover {
  background: var(--primary);
}

/* Gift Items */
.gifts-section {
  background: var(--background);
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.gift-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gift-card.claimed {
  opacity: 0.6;
}

.gift-image {
  height: 160px;
  background: linear-gradient(135deg, var(--background), rgba(201, 169, 89, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-content {
  padding: 25px;
}

.gift-name {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.gift-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.gift-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.gift-card .btn {
  width: 100%;
  padding: 12px;
  font-size: 0.85rem;
}

.gift-card.claimed .btn {
  background: var(--text-light);
  border-color: var(--text-light);
  cursor: not-allowed;
}

/* PayPal Section */
.paypal-section {
  background: var(--white);
  text-align: center;
}

.paypal-box {
  max-width: 500px;
  margin: 0 auto;
  padding: 50px;
  background: var(--background);
  border-radius: var(--radius-lg);
}

.paypal-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.paypal-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.paypal-box p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.paypal-link {
  display: inline-block;
  padding: 16px 40px;
  background: #0070ba;
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background var(--transition);
}

.paypal-link:hover {
  background: #005ea6;
  color: var(--white);
}

/* Other Payment Methods */
.payment-methods-section {
  background: var(--white);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 950px;
  margin: 0 auto;
}

.payment-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.payment-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.payment-card p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.payment-details {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.payment-details li + li {
  margin-top: 6px;
}

.payment-handle {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.payment-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
  border: none;
  cursor: pointer;
}

.payment-button:hover {
  background: #214637;
  color: var(--white);
}

.payment-button--secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(45, 90, 74, 0.3);
  margin-top: auto;
  align-self: flex-start;
}

.payment-button--secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.gift-modal-body .payment-button {
  display: inline-flex;
  justify-content: center;
  margin: 10px auto 0;
  width: 100%;
}

.payment-qr {
  margin-top: 15px;
  text-align: center;
}

.payment-qr img {
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
}

@media (max-width: 600px) {
  .payment-methods-grid {
    gap: 16px;
  }
  .payment-card {
    padding: 18px;
  }
  .payment-button {
    width: 100%;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   ADMIN PAGE
   ───────────────────────────────────────────────────────────────────────── */

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

.login-box {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-box h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.login-box p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.login-box input {
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
}

.login-box .btn {
  width: 100%;
}

.admin-dashboard {
  padding-top: 100px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-header h1 {
  font-size: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.admin-tab {
  padding: 15px 25px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.admin-tab:hover {
  color: var(--primary);
}

.admin-tab.active {
  color: var(--primary);
}

.admin-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.admin-table-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table th {
  background: var(--background);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-table tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.attending {
  background: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.status-badge.not-attending {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.export-btn {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.export-btn:hover {
  background: var(--primary);
}

/* ─────────────────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 2000;
  animation: slideIn 0.3s ease;
}

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

/* Confirmation Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────────────
   SONGS PAGE
   ───────────────────────────────────────────────────────────────────────── */

.song-form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.song-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .song-form .form-row {
    grid-template-columns: 1fr;
  }
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.song-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.song-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.song-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary);
}

.song-artist {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.song-requester {
  font-size: 0.85rem;
  color: var(--secondary);
  font-style: italic;
}

.song-source {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  background: rgba(201, 169, 89, 0.15);
  color: var(--secondary);
  border-radius: 4px;
  margin-top: 8px;
}

.song-card.has-link {
  position: relative;
}

.song-card.has-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.song-card.has-link::after {
  content: '↗';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.2s;
}

.song-card.has-link:hover::after {
  opacity: 1;
}

.song-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.65rem;
  border-radius: 4px;
  color: white;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────────────────────
   CONFETTI / PARTY POPPER ANIMATION
   ───────────────────────────────────────────────────────────────────────── */

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

.confetti.circle {
  border-radius: 50%;
}

.confetti.square {
  border-radius: 2px;
}

.confetti.ribbon {
  width: 8px;
  height: 20px;
  border-radius: 2px;
}

.confetti.star {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid currentColor;
  background: transparent !important;
}

.confetti.heart {
  width: 10px;
  height: 10px;
  background: transparent !important;
  position: relative;
}

.confetti.heart::before,
.confetti.heart::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 160%;
  background: var(--heart-color, #e74c3c);
  border-radius: 50% 50% 0 0;
}

.confetti.heart::before {
  left: 50%;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.confetti.heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

/* Bottom-left corner burst */
@keyframes confetti-burst-bl {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(0);
  }
  10% {
    transform: translate(var(--x-mid), var(--y-mid)) rotate(180deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x-end), var(--y-end)) rotate(720deg) scale(0.5);
  }
}

/* Bottom-right corner burst */
@keyframes confetti-burst-br {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(0);
  }
  10% {
    transform: translate(var(--x-mid), var(--y-mid)) rotate(-180deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x-end), var(--y-end)) rotate(-720deg) scale(0.5);
  }
}

/* Falling confetti for extra flair */
@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(-100%) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Emoji confetti pieces */
.confetti.emoji-piece {
  background: none !important;
  width: auto !important;
  height: auto !important;
  line-height: 1;
}

/* Party popper emoji animations */
.confetti-emoji {
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

@keyframes emoji-pop-bl {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  30% {
    opacity: 1;
    transform: scale(1.5) rotate(20deg);
  }
  50% {
    transform: scale(1.1) rotate(-10deg);
  }
  70% {
    transform: scale(1.3) rotate(8deg);
  }
  85% {
    transform: scale(1.15) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1.2) rotate(5deg);
  }
}

@keyframes emoji-pop-br {
  0% {
    opacity: 0;
    transform: scaleX(-1) scale(0) rotate(45deg);
  }
  30% {
    opacity: 1;
    transform: scaleX(-1) scale(1.5) rotate(-20deg);
  }
  50% {
    transform: scaleX(-1) scale(1.1) rotate(10deg);
  }
  70% {
    transform: scaleX(-1) scale(1.3) rotate(-8deg);
  }
  85% {
    transform: scaleX(-1) scale(1.15) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scaleX(-1) scale(1.2) rotate(-5deg);
  }
}
