/* =========================================================
   Tema undangan. Setiap tema hanya mengatur token desain
   dan sedikit penyesuaian khusus — struktur tetap sama.
   ========================================================= */

/* 1. Royal Gold — navy & emas, art-deco */
[data-theme="royal-gold"] {
  --bg: #0f1a2e; --bg-alt: #13213a; --surface: #172843; --ink: #f3ead6; --muted: #b9b09c;
  --accent: #c9a45c; --accent-ink: #0f1a2e; --line: rgba(201, 164, 92, .28);
  --cover-bg: #0f1a2e; --cover-ink: #f3ead6; --cover-btn-ink: #0f1a2e;
  --cover-overlay: linear-gradient(180deg, rgba(15, 26, 46, .55), rgba(15, 26, 46, .92));
  --f-display: "Cinzel", Georgia, serif; --f-script: "Cinzel", Georgia, serif; --f-body: "Cormorant Garamond", Georgia, serif;
  --display-weight: 400; --display-track: .08em; --names-case: uppercase;
  --radius: 2px; --frame: 2px; --frame-border: 1px solid #c9a45c;
  --shadow: 0 0 0 4px #0f1a2e, 0 0 0 5px rgba(201, 164, 92, .35);
}
[data-theme="royal-gold"] body { font-size: 18px; }
[data-theme="royal-gold"] .btn-open { background: #c9a45c; }
[data-theme="royal-gold"] .cover__names { font-size: clamp(2.3rem, 9vw, 4rem); }
[data-theme="royal-gold"] .hero__names { font-size: clamp(2.1rem, 9vw, 2.8rem); }
[data-theme="royal-gold"] .aside__names { font-size: clamp(3rem, 4.5vw, 4.6rem); }
[data-theme="royal-gold"] .person__nick { font-size: 1.9rem; }
[data-theme="royal-gold"] .closing__sign { font-size: 1.8rem; }
[data-theme="royal-gold"] .hero__photo,
[data-theme="royal-gold"] .person__photo { outline: 1px solid rgba(201, 164, 92, .4); outline-offset: 8px; }

/* 2. Sage Garden — hijau sage, daun, bingkai lengkung */
[data-theme="sage-garden"] {
  --bg: #f1f2ea; --bg-alt: #e4e8dc; --surface: #fbfbf6; --ink: #34402f; --muted: #6f7a68;
  --accent: #5f7a5a; --accent-ink: #fff; --line: rgba(95, 122, 90, .22);
  --cover-bg: #4b6147; --cover-ink: #fdfcf6; --cover-btn-ink: #4b6147;
  --cover-overlay: linear-gradient(180deg, rgba(40, 54, 38, .35), rgba(40, 54, 38, .78));
  --f-display: "Marcellus", Georgia, serif; --f-script: "Pinyon Script", cursive; --f-body: "Lora", Georgia, serif;
  --radius: 16px; --frame: 999px 999px 16px 16px; --frame-border: 1px solid rgba(95, 122, 90, .35);
}

/* 3. Batik Heritage — marun, emas, motif kawung */
[data-theme="batik-heritage"] {
  --bg: #fbf3e6; --bg-alt: #f3e5cf; --surface: #fffaf1; --ink: #3f1414; --muted: #7c5a4c;
  --accent: #7a2222; --accent-ink: #fbf3e6; --line: rgba(122, 34, 34, .2);
  --cover-bg: #4a1212; --cover-ink: #f6dfa8; --cover-btn-ink: #4a1212;
  --cover-overlay: linear-gradient(180deg, rgba(74, 18, 18, .55), rgba(60, 12, 12, .9));
  --f-display: "Cormorant SC", Georgia, serif; --f-script: "Great Vibes", cursive; --f-body: "Cormorant Garamond", Georgia, serif;
  --display-weight: 600; --display-track: .04em;
  --radius: 10px; --frame: 999px 999px 10px 10px; --frame-border: 2px solid #d4a64a;
}
[data-theme="batik-heritage"] body { font-size: 18px; }
[data-theme="batik-heritage"] .btn-open { background: #d4a64a; }
[data-theme="batik-heritage"] .sec--alt,
[data-theme="batik-heritage"] .cover__half,
[data-theme="batik-heritage"] .aside { background-blend-mode: normal; }
[data-theme="batik-heritage"] .sec--alt { background-image: var(--kawung); background-size: 64px; }
[data-theme="batik-heritage"] .event,
[data-theme="batik-heritage"] .gift,
[data-theme="batik-heritage"] .form { border: 1px solid #d4a64a; box-shadow: inset 0 0 0 5px #fffaf1, inset 0 0 0 6px rgba(212, 166, 74, .5); }

/* 4. Minimal Mono — editorial hitam-putih */
[data-theme="minimal-mono"] {
  --bg: #fafaf7; --bg-alt: #efeee9; --surface: #ffffff; --ink: #161616; --muted: #66645f;
  --accent: #161616; --accent-ink: #fafaf7; --line: rgba(0, 0, 0, .14);
  --cover-bg: #161616; --cover-ink: #fafaf7; --cover-btn-ink: #161616;
  --cover-overlay: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .75));
  --f-display: "Instrument Serif", Georgia, serif; --f-script: "Instrument Serif", Georgia, serif; --f-body: "Manrope", system-ui, sans-serif;
  --radius: 0; --frame: 0; --frame-border: 0; --shadow: none;
}
[data-theme="minimal-mono"] body { font-size: 15px; }
[data-theme="minimal-mono"] .sec__title { font-size: 2.6rem; font-style: italic; }
[data-theme="minimal-mono"] .hero__names,
[data-theme="minimal-mono"] .cover__names { font-size: clamp(3.4rem, 15vw, 5.6rem); line-height: .95; }
[data-theme="minimal-mono"] .hero__photo,
[data-theme="minimal-mono"] .person__photo { padding: 0; filter: grayscale(1) contrast(1.05); width: 100%; max-width: 320px; }
[data-theme="minimal-mono"] .event { border: 0; border-top: 2px solid #161616; border-bottom: 1px solid var(--line); text-align: left; padding: 22px 0; background: transparent; }
[data-theme="minimal-mono"] .event__date { justify-content: flex-start; }
[data-theme="minimal-mono"] .event__actions { justify-content: flex-start; }
[data-theme="minimal-mono"] .btn { border-radius: 0; }
[data-theme="minimal-mono"] .event__map { margin-left: 0; margin-right: 0; }

/* 5. Blush Rose — merah muda & rose gold */
[data-theme="blush-rose"] {
  --bg: #fcf5f3; --bg-alt: #f6e6e3; --surface: #fffaf9; --ink: #4b3436; --muted: #8b7072;
  --accent: #b06a74; --accent-ink: #fff; --line: rgba(176, 106, 116, .22);
  --cover-bg: #9a5a63; --cover-ink: #fff7f5; --cover-btn-ink: #9a5a63;
  --cover-overlay: linear-gradient(180deg, rgba(110, 60, 66, .3), rgba(90, 45, 52, .78));
  --f-display: "Italiana", Georgia, serif; --f-script: "Parisienne", cursive; --f-body: "Jost", system-ui, sans-serif;
  --radius: 22px; --frame: 999px; --frame-border: 1px solid rgba(176, 106, 116, .35);
}
[data-theme="blush-rose"] body { font-weight: 300; }
[data-theme="blush-rose"] .hero__photo,
[data-theme="blush-rose"] .person__photo { aspect-ratio: 1; }

/* 6. Confetti Party — ceria untuk ulang tahun */
[data-theme="confetti-party"] {
  --bg: #fffaf0; --bg-alt: #fff0dc; --surface: #ffffff; --ink: #24203b; --muted: #6b6685;
  --accent: #ff4f73; --accent-ink: #fff; --line: rgba(36, 32, 59, .12);
  --c1: #ff4f73; --c2: #ffc23d; --c3: #3a86ff; --c4: #22c38e;
  --cover-bg: #3a86ff; --cover-ink: #fff; --cover-btn-ink: #ff4f73;
  --cover-overlay: linear-gradient(160deg, rgba(58, 134, 255, .6), rgba(255, 79, 115, .78));
  --f-display: "Fredoka", system-ui, sans-serif; --f-script: "Fredoka", system-ui, sans-serif; --f-body: "Nunito", system-ui, sans-serif;
  --display-weight: 700; --radius: 20px; --frame: 38% 62% 55% 45% / 45% 40% 60% 55%; --frame-border: 4px solid #ffc23d;
  --shadow: 6px 6px 0 #24203b;
}
[data-theme="confetti-party"] .event,
[data-theme="confetti-party"] .gift,
[data-theme="confetti-party"] .form,
[data-theme="confetti-party"] .countdown div { border: 2px solid #24203b; }
[data-theme="confetti-party"] .countdown div:nth-child(2) b { color: var(--c3); }
[data-theme="confetti-party"] .countdown div:nth-child(3) b { color: var(--c4); }
[data-theme="confetti-party"] .countdown div:nth-child(4) b { color: #e0a000; }
[data-theme="confetti-party"] .btn { box-shadow: 3px 3px 0 #24203b; border-color: #24203b; }
[data-theme="confetti-party"] .hero__names { color: var(--ink); }
[data-theme="confetti-party"] .hero__age { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--c2); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; transform: rotate(-8deg); box-shadow: 4px 4px 0 #24203b; }

/* 7. Pastel Dream — lembut & manis */
[data-theme="pastel-dream"] {
  --bg: #fff8f3; --bg-alt: #f3ecfb; --surface: #ffffff; --ink: #4a3f63; --muted: #857c9a;
  --accent: #9b7fd1; --accent-ink: #fff; --line: rgba(155, 127, 209, .22);
  --c1: #f9c5d1; --c2: #c9b6e4; --c3: #b8e0d2; --c4: #ffe2a8;
  --cover-bg: #c9b6e4; --cover-ink: #fff; --cover-btn-ink: #9b7fd1;
  --cover-overlay: linear-gradient(180deg, rgba(201, 182, 228, .45), rgba(155, 127, 209, .8));
  --f-display: "Quicksand", system-ui, sans-serif; --f-script: "Pacifico", cursive; --f-body: "Quicksand", system-ui, sans-serif;
  --display-weight: 700; --radius: 24px; --frame: 50%; --frame-border: 6px solid #f9c5d1;
}
[data-theme="pastel-dream"] body { font-weight: 500; }
[data-theme="pastel-dream"] .hero__photo,
[data-theme="pastel-dream"] .person__photo { aspect-ratio: 1; padding: 0; }
[data-theme="pastel-dream"] .person__nick,
[data-theme="pastel-dream"] .hero__names { font-weight: 400; }
[data-theme="pastel-dream"] .hero__age { display: inline-block; padding: 4px 18px; border-radius: 999px; background: var(--c1); color: var(--ink); font-weight: 700; }

/* 8. Ocean Breeze — biru laut tenang */
[data-theme="ocean-breeze"] {
  --bg: #f5f8f9; --bg-alt: #e3eff4; --surface: #ffffff; --ink: #0b3954; --muted: #4e6f82;
  --accent: #127aa8; --accent-ink: #fff; --line: rgba(11, 57, 84, .14);
  --cover-bg: #0b3954; --cover-ink: #f5fbfd; --cover-btn-ink: #0b3954;
  --cover-overlay: linear-gradient(180deg, rgba(11, 57, 84, .35), rgba(11, 57, 84, .85));
  --f-display: "DM Serif Display", Georgia, serif; --f-script: "DM Serif Display", Georgia, serif; --f-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px; --frame: 24px; --frame-border: 0;
}
[data-theme="ocean-breeze"] .hero__photo,
[data-theme="ocean-breeze"] .person__photo { padding: 0; box-shadow: 14px 14px 0 #7fc8e8; }
[data-theme="ocean-breeze"] .hero__names,
[data-theme="ocean-breeze"] .person__nick { font-style: italic; }

/* Hiasan konfeti (dipakai tema pesta) */
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-layer i { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: .85; }
