/* ===== TEMPLATE 9: CLASSIC JAVA GLAM ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito Sans', sans-serif; background: #0d0d0d; color: #fff; overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

:root {
  --gold: #c9a84c;
  --gold-dark: #9a7a2e;
  --gold-light: #e8d5a3;
  --dark: #0d0d0d;
  --dark2: #1a1a1a;
  --dark3: #2a2a2a;
  --white: #ffffff;
  --gray: #999;
  --radius: 12px;
  --transition: all 0.35s ease;
  --font-serif: 'Playfair Display', serif;
}

/* ===== SPLIT LAYOUT ===== */
.split-layout { display: flex; height: 100vh; }

/* LEFT PANEL */
.left-panel { width: 55%; height: 100vh; position: relative; flex-shrink: 0; overflow: hidden; }
.left-bg { width: 100%; height: 100%; object-fit: cover; }
.left-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 2; }
.left-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.lp-tag { font-size: 0.65rem; letter-spacing: 0.6em; color: rgba(255,255,255,0.8); }
.lp-names-small { font-size: 0.8rem; letter-spacing: 0.4em; color: white; margin-top: 0.3rem; }
.lp-date-vertical { display: flex; flex-direction: column; align-items: center; margin: 1.5rem 0; }
.lp-line { width: 1px; height: 30px; background: white; }
.lp-day { font-family: var(--font-serif); font-size: 3rem; color: white; font-weight: 700; line-height: 1; }
.lp-month { font-family: var(--font-serif); font-size: 1.8rem; color: white; font-weight: 700; }
.lp-year { font-family: var(--font-serif); font-size: 2.5rem; color: white; font-weight: 700; }
.lp-guest { margin-top: 1rem; }
.lp-guest p { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.lp-guest-name { font-weight: 700; color: white; font-size: 1rem; margin-top: 0.2rem; }
.lp-guest-city { font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.music-btn {
  position: absolute; top: 1rem; left: 1rem; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.5); color: white; font-size: 0.8rem; cursor: pointer;
}

/* RIGHT PANEL */
.right-panel { width: 45%; height: 100vh; overflow-y: auto; background: var(--dark); }
.right-panel::-webkit-scrollbar { width: 4px; }
.right-panel::-webkit-scrollbar-thumb { background: var(--dark3); border-radius: 4px; }

/* ===== SECTIONS ===== */
.jv-section { padding: 2.5rem 1.5rem; text-align: center; }

/* HEADER */
.jv-header { padding: 1.5rem; }
.jv-header-card { background: linear-gradient(135deg, var(--dark2), var(--dark3)); border-radius: 20px; padding: 2rem 1.5rem; overflow: hidden; }
.jv-header-label { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--gray); }
.jv-header-names { font-family: var(--font-serif); font-style: italic; font-size: 2rem; color: var(--gold); margin: 0.3rem 0 1rem; }
.jv-header-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }

/* QUOTE */
.jv-quote { background: var(--dark2); }
.jv-arabic { font-size: 0.88rem; line-height: 2; text-align: center; color: var(--gold-light); margin-bottom: 1rem; direction: rtl; }
.jv-translation { font-size: 0.82rem; color: var(--gray); line-height: 1.7; }
.jv-source { font-size: 0.82rem; color: var(--gold); font-weight: 700; margin-top: 0.8rem; }

/* COUPLE */
.jv-couple { background: var(--dark); padding: 1.5rem; }
.jv-couple-card { background: var(--dark2); border-radius: 30px; padding: 2.5rem 1.5rem; border: 1px solid var(--dark3); }
.jv-couple-tag { font-size: 0.65rem; letter-spacing: 0.4em; color: var(--gray); margin-bottom: 1.5rem; }
.jv-person { margin-bottom: 1rem; }
.jv-photo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; border: 3px solid var(--gold); }
.jv-photo img { width: 100%; height: 100%; object-fit: cover; }
.jv-person h3 { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--gold); }
.jv-parents { font-size: 0.78rem; color: var(--gray); margin-top: 0.3rem; }
.jv-ampersand { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); margin: 0.5rem 0; }

/* COUNTDOWN */
.jv-countdown { background: var(--dark2); }
.jv-cd-title { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-bottom: 1.5rem; }
.countdown-timer { display: flex; justify-content: center; gap: 0.6rem; }
.cd-item { border: 1.5px solid var(--gold); border-radius: 10px; padding: 0.8rem 1rem; min-width: 60px; }
.cd-item span { font-family: var(--font-serif); font-size: 1.8rem; color: var(--gold); display: block; font-weight: 700; }
.cd-item p { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--gray); text-transform: capitalize; margin-top: 0.2rem; }

/* EVENT */
.jv-event { background: var(--dark); }
.jv-event-card { background: var(--dark2); border: 1px solid var(--dark3); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.jv-event-badge { display: inline-block; border: 1px solid var(--gray); padding: 0.25rem 0.8rem; border-radius: 50px; font-size: 0.6rem; color: var(--gray); margin-bottom: 0.8rem; }
.jv-event-card h3 { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--gold); margin-bottom: 0.6rem; }
.jv-event-card p { font-size: 0.82rem; color: var(--gray); margin-bottom: 0.3rem; }
.jv-event-btns { margin-top: 1rem; }
.jv-btn { display: inline-block; padding: 0.5rem 1.2rem; border: 1px solid var(--gold); border-radius: 4px; color: var(--gold); font-size: 0.75rem; transition: var(--transition); }
.jv-btn:hover { background: var(--gold); color: var(--dark); }
.map-embed-wrap { display: none; margin-top: 0.8rem; border-radius: 8px; overflow: hidden; }
.map-embed-wrap iframe { width: 100%; height: 160px; border: none; }

/* RSVP */
.jv-rsvp { background: var(--dark2); }
.jv-rsvp-title { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-bottom: 0.5rem; }
.jv-rsvp-desc { font-size: 0.82rem; color: var(--gray); margin-bottom: 1.5rem; }
.jv-rsvp-btns { display: flex; flex-direction: column; gap: 0.6rem; }
.jv-rsvp-choice input { display: none; }
.jv-rsvp-choice span { display: block; padding: 0.8rem; border-radius: 6px; text-align: center; font-size: 0.88rem; cursor: pointer; transition: var(--transition); }
.jv-rsvp-choice.hadir span { background: #27ae60; color: white; }
.jv-rsvp-choice.tidak span { background: #c0392b; color: white; }
.jv-rsvp-choice input:checked + span { opacity: 0.7; transform: scale(0.98); }

/* GALLERY */
.jv-gallery { background: var(--dark); }
.jv-gallery-sub { font-size: 0.82rem; color: var(--gold); font-style: italic; margin-bottom: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-item { overflow: hidden; border-radius: 10px; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-del-btn { display: none; position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(192,57,43,0.9); border: none; color: white; font-size: 0.55rem; cursor: pointer; align-items: center; justify-content: center; z-index: 5; }
.gallery-overlay { display: none; }

/* LOVE STORY */
.jv-story { background: var(--dark2); }
.jv-story-title { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-bottom: 0.3rem; }
.jv-story-sub { font-size: 0.8rem; color: var(--gray); margin-bottom: 2rem; }
.timeline { position: relative; padding-left: 0; text-align: center; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--dark3); transform: translateX(-50%); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item.left, .timeline-item.right { display: block; width: 100%; }
.timeline-dot { display: none; }
.timeline-content { width: 80%; margin: 0 auto; padding: 0; background: none; border: none; box-shadow: none; border-radius: 0; text-align: center; }
.timeline-date { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--gray); display: block; margin-bottom: 0.3rem; }
.timeline-content h4 { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--gold); margin-bottom: 0.4rem; }
.timeline-content p { font-size: 0.8rem; color: var(--gray); line-height: 1.6; }
.tl-btns { position: absolute; top: 0; right: 10%; display: none; gap: 3px; }
.tl-edit-btn, .tl-del-btn { width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer; font-size: 0.55rem; display: flex; align-items: center; justify-content: center; }
.tl-edit-btn { background: var(--gold); color: var(--dark); }
.tl-del-btn { background: #c0392b; color: white; }

/* WISHES */
.jv-wishes { background: var(--dark); }
.jv-wishes-title { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--gold); margin-bottom: 1rem; }
#wishForm textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--dark3); border-radius: 8px; background: var(--dark2); color: white; font-size: 0.88rem; font-family: inherit; outline: none; resize: vertical; margin-bottom: 0.8rem; }
#wishForm textarea:focus { border-color: var(--gold); }
.jv-btn-gold-full { width: 100%; padding: 0.8rem; background: var(--gold); color: var(--dark); border: none; border-radius: 6px; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.jv-btn-gold-full:hover { background: var(--gold-dark); }
.wishes-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.wish-item { background: var(--dark2); border: 1px solid var(--dark3); border-radius: var(--radius); padding: 1rem; }
.wish-header { margin-bottom: 0.3rem; }
.wish-avatar { display: none; }
.wish-name { font-weight: 700; font-size: 0.85rem; color: white; }
.wish-time { display: none; }
.wish-text { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }

/* GIFT */
.jv-gift { background: var(--dark2); }
.jv-gift-title { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--gold); margin-bottom: 0.8rem; }
.jv-gift-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.6; margin-bottom: 1.5rem; }
.jv-gift-card { background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 0.8rem; }
.jv-gift-card h4 { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 0.3rem; }
.gift-account { font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold); font-weight: 700; }
.gift-holder { font-size: 0.75rem; color: var(--gray); }
.gift-qris { margin: 0.5rem 0; }
.qris-img { max-width: 100px; margin: 0 auto; border-radius: 6px; }

/* CLOSING */
.jv-closing { background: var(--dark); padding: 2rem 1.5rem; }
.jv-closing-circle { position: relative; width: 280px; height: 280px; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); }
.jv-closing-circle img { width: 100%; height: 100%; object-fit: cover; }
.jv-closing-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.jv-closing-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.jv-closing-content p { font-size: 0.65rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.7); }
.jv-closing-content h2 { font-family: var(--font-serif); font-style: italic; font-size: 1.8rem; color: var(--gold); }
.jv-closing-date { font-size: 0.8rem; color: var(--gold-light); margin-top: 0.3rem; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 1rem; cursor: pointer; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* TOAST */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--gold); color: var(--dark); padding: 0.7rem 1.4rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; z-index: 99999; opacity: 0; transition: all 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* NAV hidden */
.floating-nav { display: none !important; }

/* EDITOR FIX */
body.editor-active .right-panel { width: calc(45% - 320px); }
#editorPanel { z-index: 10001; }

/* RESPONSIVE */
@media (max-width: 900px) {
  body { overflow: auto; }
  .split-layout { flex-direction: column; height: auto; }
  .left-panel { width: 100%; height: 100vh; flex-shrink: 0; }
  .right-panel { width: 100%; height: auto; overflow: visible; }
  body.editor-active .right-panel { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .jv-closing-circle { width: 220px; height: 220px; }
}
