/* ===================================
   PREMIUM-BASE-01 - Wedding Template
   Premium category base template with wireframe styling
   White/Beige/Ivory color scheme with gold accents
   =================================== */

/* ===== CSS Variables (Synced with Tailwind Config in index.html) ===== */
:root {
  --primary-gold: #D34E4E;
  /* Updated to match Tailwind 'primary' */
  --primary-color: #D34E4E;
  /* Alias for clarity */
  --primary-dark: #b83d3d;
  /* Adjusted darker shade */
  --accent-rose: #bb2649;
  --text-dark: #44525F;
  --text-light: #6d7882;
  --bg-cream: #FAF7F2;
  --bg-white: #ffffff;
  --border-gold: rgba(211, 78, 78, 0.3);
  /* Adjusted to match primary */
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Lato', sans-serif;
}

/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container-mobile {
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-white);
  min-height: 100vh;
  overflow: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

.script-font {
  font-family: var(--font-script);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-gold);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ===== Divider ===== */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  margin: 1rem auto;
}

.divider-ornament {
  width: 100px;
  height: 20px;
  background: url('../img/divider-ornament.svg') center/contain no-repeat;
  margin: 1.5rem auto;
}

/* ===== Cover Section (Replaced by Tailwind) =====
 * Styles below are disabled as we migrated to Tailwind CSS
 *
#cover-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0909;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s ease;
}

#cover-section.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%);
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 400px;
}

.cover-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.cover-names {
  font-family: var(--font-script);
  font-size: 3rem;
  margin: 1rem 0;
  line-height: 1.2;
}

.cover-date {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cover-guest-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.cover-guest-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.cover-guest-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
}

.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary-gold);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(188, 146, 110, 0.4);
}

.btn-open-invitation:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(188, 146, 110, 0.5);
}

.btn-open-invitation svg {
  width: 16px;
  height: 16px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-3px);
  }
}
*/

/* ===== Cover Section Z-Index ===== */
#cover-overlay-main {
  z-index: 100;
}

/* ===== Main Content ===== */
#main-content {
  opacity: 1;
  visibility: visible;
}

#main-content.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Hero Section ===== */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-names {
  font-family: var(--font-script);
  font-size: 3.5rem;
  margin: 0;
  line-height: 1.3;
}

.hero-ampersand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  margin: 0.5rem 0;
  opacity: 0.8;
}

.hero-date {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 1.5rem;
  letter-spacing: 0.1em;
}

.hero-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 2rem;
  max-width: 300px;
  opacity: 0.9;
}

/* ===== Couple Section ===== */
.couple-section {
  padding: 4rem 1.5rem;
  background: var(--bg-white);
}

.couple-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.couple-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 320px;
  margin: 0 auto;
}

.couple-card {
  text-align: center;
  margin-bottom: 2.5rem;
}

.couple-photo-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-gold);
  box-shadow: 0 4px 20px rgba(188, 146, 110, 0.2);
  position: relative;
}

.couple-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-name {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
}

.couple-fullname {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.couple-parents {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.couple-ampersand {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--primary-gold);
  text-align: center;
  margin: 1rem 0;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-gold);
  background: transparent;
  color: var(--primary-gold);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.instagram-btn:hover {
  background: var(--primary-gold);
  color: #fff;
}

/* ===== Event Section ===== */
.event-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-white) 100%);
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.countdown-item {
  text-align: center;
  min-width: 60px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 500;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.event-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.event-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.event-card-date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.event-card-time {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.event-card-location {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--primary-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ===== Gallery Section ===== */
.gallery-section {
  padding: 4rem 1rem;
  background: var(--bg-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* Lazy Background Image */
.lazy-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* YouTube Player Styles */
#youtube-iframe-wrapper {
  overflow: hidden;
}

#youtube-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#youtube-controls {
  pointer-events: auto;
}

/* ===== Story Section ===== */
.story-section {
  padding: 4rem 1.5rem;
  background: var(--bg-cream);
}

.story-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.story-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

.story-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark);
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}

/* ===== Our Story Paper Frame (Scrapbook Style) ===== */
.story-scrapbook {
  position: relative;
  max-width: 380px;
  margin: 2rem auto;
  padding: 2rem;
}

.paper-frame {
  background: linear-gradient(135deg, #FFFEF8 0%, #FDF8E8 50%, #FFFEF8 100%);
  border: none;
  border-radius: 2px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.05),
    0 8px 16px rgba(0, 0, 0, 0.05),
    inset 0 0 40px rgba(0, 0, 0, 0.02);
  transform: rotate(-1deg);
  z-index: 1;
}

/* Paper texture lines */
.paper-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(transparent,
      transparent 27px,
      rgba(200, 180, 140, 0.15) 28px);
  pointer-events: none;
  border-radius: 2px;
}

/* Red margin line */
.paper-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.5rem;
  width: 1px;
  background: rgba(220, 80, 80, 0.25);
  pointer-events: none;
}

.paper-frame p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: left;
  padding-left: 1rem;
  position: relative;
  z-index: 2;
}

.paper-frame p:last-of-type {
  margin-bottom: 0;
}

/* Scattered Photos Container */
.scrapbook-photos {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 2;
}

.scrapbook-photo {
  position: absolute;
  width: 85px;
  height: 100px;
  background: #fff;
  padding: 5px 5px 15px 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  overflow: visible;
}

.scrapbook-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrapbook-photo::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(200, 200, 200, 0.3));
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes throwIn {
  from {
    opacity: 0;
    transform: translate(var(--startX), var(--startY)) rotate(var(--startRot)) scale(1.1);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--endRot)) scale(1);
  }
}

/* Photo positions - scattered effect with Throw Animation */
.scrapbook-photo:nth-child(1) {
  --startX: 50px;
  --startY: -50px;
  --startRot: 30deg;
  --endRot: 6deg;

  top: -5px;
  right: 15px;
  transform: rotate(var(--endRot));
  z-index: 3;
  animation: throwIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.3s;
  opacity: 0;
  /* Init hidden */
}

.scrapbook-photo:nth-child(2) {
  --startX: -50px;
  --startY: 50px;
  --startRot: -45deg;
  --endRot: -8deg;

  top: 50%;
  left: -5px;
  transform: translateY(-50%) rotate(var(--endRot));
  z-index: 3;
  animation: throwIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.scrapbook-photo:nth-child(3) {
  --startX: 50px;
  --startY: 50px;
  --startRot: 45deg;
  --endRot: -4deg;

  bottom: -5px;
  right: 15px;
  transform: rotate(var(--endRot));
  z-index: 3;
  animation: throwIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

/* ===== Dress Code Section ===== */
.dress-code-section {
  padding: 3rem 1.5rem;
  background: var(--bg-white);
}

.dress-code-circles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -20px;
  margin-top: 1.5rem;
}

.dress-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

.dress-circle:nth-child(2) {
  margin-left: -25px;
}

.dress-code-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: center;
}

/* ===== Wishes Section ===== */
.wishes-section {
  padding: 4rem 1.5rem;
  background: var(--bg-white);
}

.wishes-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
}

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

.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-white);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Legacy chat item - may be removed if not used */

.chat-item {
  padding: 1rem;
  background: var(--bg-cream);
  border-radius: 12px;
}

.chat-bubble-author {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-gold);
  margin-bottom: 0.25rem;
}

.chat-bubble-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.chat-bubble-body {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ===== Gift Section ===== */
.gift-section {
  padding: 4rem 1.5rem;
  background: var(--bg-cream);
}

.gift-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.gift-bank-logo {
  height: 30px;
  margin-bottom: 1rem;
}

.gift-account-number {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.gift-account-name {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-gold);
  background: transparent;
  color: var(--primary-gold);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy:hover,
.btn-copy.copied {
  background: var(--primary-gold);
  color: #fff;
}

/* Debit Card Style */
.debit-card {
  background: linear-gradient(135deg, rgba(211, 78, 78, 0.25), rgba(211, 78, 78, 0.15));
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  font-family: monospace;
  width: 100% !important;
  max-width: 320px;
  aspect-ratio: 1.75 / 1;
  padding: 1rem;
  text-align: left;
  margin: 1rem auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  position: relative;
  overflow: hidden;
}

.debit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
  transform: rotate(30deg);
  pointer-events: none;
}

.bank-name {
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.card-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-design {
  position: relative;
  width: 70px;
  height: 50px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: linear-gradient(113deg, rgb(213, 172, 63) 0%, rgb(255, 224, 136) 50%, rgb(193, 140, 1) 100%);
}

.card-design .horizontal-line,
.card-design .vertical-line {
  position: absolute;
  background-color: rgb(161, 119, 18);
  border-radius: 0.5rem;
}

.card-design .horizontal-line {
  height: 1px;
  left: 0;
  right: 0;
}

.card-design .horizontal-line.bottom {
  bottom: 25%;
}

.card-design .horizontal-line:not(.bottom) {
  top: 25%;
}

.card-design .vertical-line {
  width: 1px;
  top: 0;
  bottom: 0;
}

.card-design .vertical-line.left {
  left: 30%;
}

.card-design .vertical-line.right {
  right: 30%;
}

.bank-logo {
  width: 90px;
  height: 50px;
  border-radius: 0.5rem;
}

.bank-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-number {
  color: #333 !important;
  font-size: 18px;
  font-weight: bold;
}

.account-owner {
  color: #333 !important;
  font-size: 14px;
  margin-top: 0.5rem;
}

/* ===== Closing Section ===== */
.closing-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-cream) 100%);
  text-align: center;
}

.closing-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 4px solid var(--primary-gold);
}

.closing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-message {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.closing-names {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--primary-gold);
}

.closing-salam {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem;
  background: var(--primary-gold);
  text-align: center;
  color: #fff;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================================
   (Refreshed Chat UI Styles moved to wishes.css)
   ========================================= */



/* AOS animations handled by aos.min.css library */

/* ===== Responsive ===== */
@media (max-width: 400px) {

  .cover-names,
  .hero-names {
    font-size: 2.5rem;
  }

  .couple-photo-frame {
    width: 150px;
    height: 150px;
  }

  .couple-name {
    font-size: 1.8rem;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-item {
    min-width: 50px;
  }
}

/* ===== Loader ===== */
#simple-loader {
  position: fixed;
  z-index: 20000;
  inset: 0;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-gold);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}

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

/* Lock body scroll when cover is active */
body.cover-active {
  overflow: hidden;
  height: 100vh;
}

/* ===== Split Layout Styles ===== */

/* Desktop Only - Hidden on Mobile */
.desktop-only {
  display: none;
}

#app-container {
  width: 100%;
  min-height: 100vh;
}

#right-section {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background: var(--bg-cream);
}

/* Adjust Loader Position */
#simple-loader {
  position: fixed;
  /* Keep fixed to cover everything initially */
  z-index: 20000;
  inset: 0;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Music Button Styles (Liquid Glass Style) */
.music-button-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, background 0.3s ease;
  opacity: 1;
  pointer-events: none;

  /* Liquid Glass Properties with Primary Color */
  background: rgba(211, 78, 78, 0.15);
  border: 1px solid rgba(211, 78, 78, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  padding: 2px;
  /* Space for the disk inside */
  overflow: hidden;
  /* For pseudo-elements */
}

/* Gradient Overlay via pseudo-element */
.music-button-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.4), transparent, transparent);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.music-button-container.visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.music-button-container:hover {
  background: rgba(211, 78, 78, 0.25);
}

.disk {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  /* Above the gradient overlay */
  /* Spin animation - pauses in place when music stops */
  animation: spin 8s linear infinite paused;
  opacity: 1;
}

.disk.playing {
  animation-play-state: running;
}

/* Tablet/Centered Layout Fix (>450px and <1024px) */
@media (min-width: 450px) and (max-width: 1023px) {
  .music-button-container {
    right: auto;
    left: 50%;
    margin-left: 165px;
    /* Center(0) + HalfContainer(225) - Gap(20) - BtnWidth(40) = 165 */
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  #app-container {
    /* No flex here, we use fixed positioning for left */
    display: block;
  }

  /* Left Section Styling - Fixed Position */
  .desktop-only {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: fixed;
    /* Fixed to the viewport */
    top: 0;
    left: 0;
    width: calc(100% - 450px);
    /* Fill space minus right panel width */
    height: 100vh;
    overflow: hidden;
    color: #fff;
    text-align: left;
    padding: 2rem;
    z-index: 1;
  }

  .left-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
  }

  .left-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
  }

  .left-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    animation: fadeIn 1.5s ease;
  }

  .left-subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .left-title {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  .left-date {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
  }

  .left-divider {
    width: 60px;
    height: 2px;
    background: #fff;
    margin: 0 0 2rem 0;
    opacity: 0.6;
  }

  .left-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
  }


  /* Right Section (Invitation) Styling */
  #right-section {
    width: 450px;
    /* Fixed mobile width */
    margin-left: auto;
    /* Push to the right side */
    margin-right: 0;
    background: var(--bg-cream);
    min-height: 100vh;
    position: relative;
    z-index: 10;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  /* Reset container-mobile width to 100% of right-section */
  .container-mobile {
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Music Button Positioning for Desktop */
  /* Since it's fixed right:20px, it will naturally be inside the 450px right panel */
  /* Music Button Positioning for Desktop */
  .music-button-container {
    right: 20px;
    bottom: 20px;
    /* Reset centering logic from tablet query */
    left: auto;
    margin-left: 0;
    z-index: 50;
  }
}

/* Cover Section - Fixed Full Screen */
#cover-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 15000;
  /* Above everything except loader */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0909;
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
}

#cover-section.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   WISHES/CHAT UI - Consolidated Styles
   Uses Tailwind utilities where possible
   ========================================= */

/* Main Container - scrollbar and border */
#wishes-chat-container {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) var(--bg-cream);
}

#wishes-chat-container::-webkit-scrollbar {
  width: 4px;
}

#wishes-chat-container::-webkit-scrollbar-track {
  background: var(--bg-cream);
  border-radius: 4px;
}

#wishes-chat-container::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 4px;
}

/* Action Button - only non-Tailwind styles */
.ref-action-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: rgba(67, 67, 67, 1);
  transition: color 0.2s ease;
}

.ref-action-btn:hover {
  color: var(--primary-gold);
}

.ref-action-btn.delete-btn:hover {
  color: #ef4444;
}

/* SVG Icon Size */
.ref-read-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Reply Avatar - smaller size */
.replies-container .ref-avatar-group>div {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}

.replies-container .ref-avatar-group img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}