/*
Theme Name: Mamuli Subahnale - Adat Nusa Tenggara (Sasak & Sumba)
Theme URI: https://example.com/09-adat-nusatenggara-tenun
Author: Koleksi 30 Tema Nusantara Classic & Modern
Description: Tema WordPress Undangan Pernikahan Online (Mamuli Subahnale - Adat Nusa Tenggara (Sasak & Sumba)) - Desain Unik (zigzag-timeline + scroll-unroll), 100% Bebas Copyright, dilengkapi 3 cara Tambah/Ganti Foto & Musik Otomatis.
Version: 2.0.0
License: GPL v2 or later
Text Domain: 09-adat-nusatenggara-tenun
*/

:root {
  --bg-deep: #24140E;
  --bg-secondary: #3B2218;
  --bg-card: rgba(59,34,24,0.90);
  --gold-main: #DDA04B;
  --gold-light: #F9DFB6;
  --secondary-hue: #9E472A;
  --text-cream: #FDF9F4;
  --text-muted: #DBC5B6;
  --border-gold: #DDA04B66;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg-deep); color: var(--text-cream); font-family: var(--font-sans); line-height: 1.65; overflow-x: hidden; }
body { background: radial-gradient(circle at 50% 10%, var(--bg-secondary) 0%, var(--bg-deep) 80%); color: var(--text-cream); overflow-x: hidden; position: relative; }
body.locked-scroll { overflow: hidden; height: 100vh; }
#theme-particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; }
.gold-gradient-text { color: var(--gold-main); }
.aksara-subtitle { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-main); display: inline-block; margin-bottom: 0.55rem; }

.opening-cover {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-deep) 90%);
  transition: all 1.25s var(--ease-smooth); overflow: hidden;
}
.opening-cover.is-opened { pointer-events: none; visibility: hidden; }
.opening-cover { clip-path: inset(0 0 0 0); } .opening-cover.is-opened { clip-path: inset(50% 0 50% 0); opacity: 0; }

.cover-card { position: relative; z-index: 5; max-width: 490px; width: 92%; padding: 2.3rem 1.8rem; text-align: center; background: var(--bg-card); border: 1.5px solid var(--border-gold); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.cover-photo-frame { width: 155px; height: 195px; margin: 0.7rem auto 1.1rem; padding: 5px; border-radius: 85px 85px 16px 16px; background: linear-gradient(180deg, var(--gold-light), var(--secondary-hue), var(--gold-main)); }
.cover-photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 80px 80px 12px 12px; display: block; }
.cover-couple-names { font-size: clamp(1.9rem, 4.8vw, 2.65rem); line-height: 1.15; margin: 0.25rem 0 0.4rem; }
.cover-guest-box { margin: 0.95rem auto 1.2rem; padding: 0.75rem 1.1rem; border: 1px solid var(--border-gold); border-radius: 12px; max-width: 330px; }
.cover-guest-name { font-family: var(--font-serif); font-size: 1.25rem; color: var(--gold-main); margin-top: 0.15rem; }

.btn-primary-theme { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; background: var(--gold-main); color: var(--bg-deep); border: 1px solid var(--gold-light); cursor: pointer; text-decoration: none; transition: transform 0.3s ease; }
.btn-primary-theme:hover { transform: translateY(-3px); }
.btn-outline-theme { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.58rem 1.15rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--gold-main); background: transparent; border: 1px solid var(--gold-main); cursor: pointer; text-decoration: none; }

.section-wrap { position: relative; z-index: 2; padding: 4.5rem 1.25rem; max-width: 1000px; margin: 0 auto; }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 2.5rem; }
.section-title { font-size: clamp(1.85rem, 4vw, 2.7rem); margin-bottom: 0.45rem; }
.section-desc { color: var(--text-muted); font-size: 0.94rem; }

.hero-banner { min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4.5rem 1.25rem 3rem; }
.hero-arch-frame { max-width: 740px; width: 100%; padding: 2.8rem 1.75rem; background: var(--bg-card); border: 1.5px solid var(--border-gold); border-radius: 28px; }
.hero-couple-portrait { width: 195px; height: 245px; margin: 0 auto 1.2rem; padding: 5px; border-radius: 100px 100px 18px 18px; background: linear-gradient(180deg, var(--gold-light), var(--secondary-hue), var(--gold-main)); }
.hero-couple-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 95px 95px 14px 14px; }

.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; max-width: 460px; margin: 1.6rem auto; }
.countdown-box { border: 1px solid var(--border-gold); border-radius: 12px; padding: 0.75rem 0.35rem; text-align: center; }
.countdown-num { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 700; color: var(--gold-main); }
.countdown-label { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); }

.couple-grid, .events-grid, .gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.65rem; }
.couple-card, .event-card, .bank-card { background: var(--bg-card); border: 1.5px solid var(--border-gold); border-radius: 22px; padding: 2rem 1.5rem; text-align: center; }
.couple-avatar-wrap { width: 175px; height: 215px; margin: 0 auto 1.15rem; padding: 5px; border-radius: 90px 90px 18px 18px; background: linear-gradient(160deg, var(--gold-light), var(--secondary-hue), var(--gold-main)); }
.couple-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 85px 85px 14px 14px; }
.couple-name { font-size: 1.6rem; color: var(--gold-main); margin-bottom: 0.3rem; }
.couple-parents { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.95rem; }
.event-badge { display: inline-block; padding: 0.25rem 0.85rem; border-radius: 999px; border: 1px solid var(--gold-main); color: var(--gold-main); font-size: 0.74rem; text-transform: uppercase; margin-bottom: 0.65rem; }

.photo-upload-bar { background: var(--bg-card); border: 1.5px dashed var(--gold-main); border-radius: 16px; padding: 1.15rem 1.35rem; margin-bottom: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem; }
.photo-upload-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin-bottom: 1.5rem; }
.filter-btn { padding: 0.45rem 1.05rem; border-radius: 999px; border: 1px solid var(--border-gold); background: var(--bg-card); color: var(--text-cream); font-size: 0.82rem; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--gold-main); color: var(--bg-deep); font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1.15rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--border-gold); aspect-ratio: 4/3; cursor: pointer; transition: transform 0.4s ease; }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; inset: auto 0 0 0; padding: 1.2rem 0.85rem 0.65rem; background: linear-gradient(0deg, rgba(10,8,6,0.92), transparent); color: #FFF; }
.gallery-caption h4 { font-size: 0.95rem; color: #F7E594; }
.gallery-caption span { font-size: 0.72rem; color: #E0D6C8; }

.rsvp-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.65rem; background: var(--bg-card); border: 1.5px solid var(--border-gold); border-radius: 22px; padding: 1.85rem; }
.form-group { margin-bottom: 0.85rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--gold-main); margin-bottom: 0.25rem; font-weight: 600; }
.form-control { width: 100%; padding: 0.68rem 0.9rem; border-radius: 8px; border: 1px solid var(--border-gold); background: var(--bg-deep); color: var(--text-cream); font-family: inherit; font-size: 0.88rem; }
.wishes-list { max-height: 310px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.7rem; }
.wish-item { border: 1px solid var(--border-gold); border-radius: 10px; padding: 0.8rem 1rem; }
.wish-header { display: flex; justify-content: space-between; margin-bottom: 0.2rem; }
.wish-name { font-weight: 700; color: var(--gold-main); font-size: 0.88rem; }
.wish-badge { font-size: 0.68rem; padding: 0.12rem 0.5rem; border-radius: 999px; border: 1px solid var(--gold-main); color: var(--gold-main); }

.floating-nav { position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; gap: 0.25rem; padding: 0.4rem 0.65rem; background: var(--bg-card); border: 1px solid var(--gold-main); border-radius: 999px; backdrop-filter: blur(10px); }
.floating-nav a { color: var(--text-cream); text-decoration: none; font-size: 0.74rem; padding: 0.35rem 0.75rem; border-radius: 999px; }
.floating-nav a:hover { background: var(--gold-main); color: var(--bg-deep); }
.music-fab { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 95; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold-main); background: var(--bg-card); color: var(--gold-main); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(8,6,4,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.lightbox-modal.active { opacity: 1; visibility: visible; }
.lightbox-modal img { max-width: min(92vw, 860px); max-height: 75vh; border: 2px solid var(--gold-main); }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-main); background: var(--bg-card); color: var(--gold-main); font-size: 1.2rem; cursor: pointer; }
.theme-toast { position: fixed; bottom: 4.5rem; left: 50%; transform: translateX(-50%); background: var(--gold-main); color: var(--bg-deep); font-weight: 700; font-size: 0.84rem; padding: 0.55rem 1.2rem; border-radius: 999px; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 9999; }
.theme-toast.show { opacity: 1; visibility: visible; }

.reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 0; transition: all 0.85s var(--ease-smooth); }
.reveal-up { transform: translateY(32px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.94); }
.reveal-up.is-visible, .reveal-left.is-visible, .reveal-right.is-visible, .reveal-scale.is-visible { opacity: 1; transform: translate(0,0) scale(1); }

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


        .couple-card, .event-card { border-left: 6px solid var(--gold-main); border-radius: 0 24px 24px 0; text-align: left; }
        .couple-avatar-wrap { margin: 0 0 1.2rem 0 !important; }
        @media (min-width: 900px) {
          .floating-nav { right: 1.2rem; left: auto; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; border-radius: 22px; }
        }
