/* Theme 11 — Premium Arch (Ivory & Gold) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400;500&family=Alex+Brush&display=swap');

.theme-bali {
  --primary: #D1A543; /* Deep Charcoal */
  --primary-hover: #b38b34;
  --primary-light:  #f0f4f8;
  --secondary: #D1A543; /* Elegant Gold */
  --secondary-light:#f9f6ef; 
  --bg: #185240; /* Warm Ivory */
  --text: #e5d5b5; /* Dark Grey */
  --muted: #c4b494; /* Medium Grey */
  
  --font-body:      'Montserrat', sans-serif;
  --font-title:     'Bell MT', serif;
  --font-script:    'Alex Brush', cursive;
}

/* Background Styling */
body.theme-bali {
  background-color: var(--bg);
  background-image: none;
}

/* Hide default user background if we want the clean ivory look, 
   but let's keep it if they explicitly uploaded one. 
   If not uploaded, we use our clean gradient. */
body.theme-bali:not(.has-bg) .bg-layer {
  display: none;
}

/* Container for all content (Swipeable) */
.invitation-content {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100vw;
  height: 100vh;
  position: relative;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.invitation-content::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Base block for each slide */
.section-block {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: block;
  padding: 100px 20px 80px 20px;
  box-sizing: border-box;
}

/* ==========================================================
   ARCH CARD LAYOUT
   ========================================================== */
.theme-bali .card {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: none;
  position: relative;
  z-index: 2;
  color: var(--text);
}

/* Subtle gold diamond/star at the top inside the arch */
.theme-bali .card::before {
  content: "✧";
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 28px;
  color: var(--secondary);
  line-height: 1;
}

/* Remove any floral pseudoelements if they somehow persisted */
.theme-bali .card::after {
  display: none;
}

/* ==========================================================
   TYPOGRAPHY & ACCENTS
   ========================================================== */
.theme-bali .section-title {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.theme-bali .eyebrow {
  color: var(--secondary);
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 8vw, 2.2rem);
  text-transform: capitalize;
  letter-spacing: 0;
  margin-bottom: 0;
}

.theme-bali .couple-title {
  font-size: clamp(3rem, 12vw, 4.5rem);
  margin: 15px 0;
  color: var(--primary);
}

.theme-bali .cover-title {
  font-size: clamp(3.5rem, 14vw, 5rem);
  color: var(--primary);
}

/* ==========================================================
   COUNTDOWN (CIRCLES)
   ========================================================== */
.theme-bali .countdown {
  gap: 12px;
  margin-top: 30px;
}

.theme-bali .cd-cell {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--primary);
  border-radius: 50%; /* Circle shape */
  aspect-ratio: 1 / 1; /* Keep it perfectly round */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-bali .cd-cell .cd-num {
  font-size: 1.5rem;
  color: var(--primary);
}

.theme-bali .cd-cell .cd-label {
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-body);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.theme-bali .btn-primary, 
.theme-bali .cover-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 16px 32px;
  box-shadow: none;
  border: 1px solid var(--primary);
}

.theme-bali .btn-primary:hover, 
.theme-bali .cover-btn:hover {
  background: #fff;
  color: var(--primary);
  transform: none;
}

/* ==========================================================
   TIMELINE / KISAH CINTA
   ========================================================== */
.theme-bali .timeline::before {
  background: var(--secondary);
}

.theme-bali .timeline-marker {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px #fff;
}

/* ==========================================================
   COVER FRAME (ARCH + FLOWERS)
   ========================================================== */
.cover-frame {
  width: 220px;
  height: 300px;
  margin: 20px auto 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease both;
  z-index: 2;
}

.cover-frame img.cover-photo {
  width: 100%;
  height: 100%;
  border-radius: 200px 200px 12px 12px; /* Arch shape */
  object-fit: cover;
  box-shadow: 0 0 0 5px var(--secondary), 
              0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  z-index: 3;
}

/* ==========================================================
   SCROLL & SWIPE ANIMATIONS
   ========================================================== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
