/* ===== TEMPLATE 6: SAKURA ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito Sans', sans-serif; background: #fff; color: #2d2d2d; overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

:root {
  --pink: #c41e5c;
  --pink-light: #fce4ec;
  --pink-dark: #8e1544;
  --crimson: #b71c5a;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-light: #666;
  --gold: #c41e5c;
  --gold-dark: #8e1544;
  --gold-light: #e91e8c;
  --radius: 16px;
  --transition: all 0.35s ease;
  --font-serif: 'Playfair Display', serif;
}

/* ===== SPLIT LAYOUT ===== */
.split-layout { display: flex; height: 100vh; }

/* LEFT PANEL */
.left-panel {
  width: 60%; height: 100vh; position: relative; flex-shrink: 0;
  background: linear-gradient(180deg, var(--pink-light) 0%, #fff5f8 50%, #fff 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.left-content { text-align: center; z-index: 5; position: relative; }
.left-tag { font-size: 0.7rem; letter-spacing: 0.5em; color: var(--text-light); margin-bottom: 0.5rem; }
.left-names {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--pink); font-weight: 400; line-height: 1.2;
}
.left-names em { font-style: italic; }
.left-guest { margin-top: 2rem; }
.left-guest p { font-size: 0.82rem; color: var(--text-light); }
.guest-name { font-weight: 700; color: var(--text); font-size: 1rem; margin-top: 0.2rem; }
.guest-city { font-size: 0.75rem; color: var(--text-light); }

/* Sakura branch (top-left) */
.sakura-branch {
  position: absolute; top: 0; left: 0; width: 200px; height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Cpath d='M0 80 Q40 60 80 70 Q120 80 160 50 Q180 40 200 30' stroke='%234a2c2c' fill='none' stroke-width='2'/%3E%3Ccircle cx='60' cy='65' r='8' fill='%23f8a4c8'/%3E%3Ccircle cx='80' cy='58' r='6' fill='%23fbb4d4'/%3E%3Ccircle cx='100' cy='62' r='7' fill='%23f8a4c8'/%3E%3Ccircle cx='120' cy='55' r='5' fill='%23fcc4dc'/%3E%3Ccircle cx='140' cy='48' r='8' fill='%23f8a4c8'/%3E%3Ccircle cx='160' cy='42' r='6' fill='%23fbb4d4'/%3E%3Ccircle cx='40' cy='72' r='7' fill='%23fcc4dc'/%3E%3C/svg%3E") no-repeat;
  background-size: contain; z-index: 3;
}

/* Sakura bottom-right */
.sakura-bottom {
  position: absolute; bottom: 0; right: 0; width: 250px; height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 200'%3E%3Ccircle cx='200' cy='150' r='12' fill='%23f8a4c8'/%3E%3Ccircle cx='180' cy='130' r='10' fill='%23fbb4d4'/%3E%3Ccircle cx='220' cy='120' r='8' fill='%23f8a4c8'/%3E%3Ccircle cx='160' cy='160' r='9' fill='%23fcc4dc'/%3E%3Ccircle cx='230' cy='170' r='11' fill='%23f8a4c8'/%3E%3Ccircle cx='190' cy='180' r='7' fill='%23fbb4d4'/%3E%3Cpath d='M150 200 Q170 170 200 160 Q220 150 250 140' stroke='%234a2c2c' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat;
  background-size: contain; z-index: 3;
}

/* Roof silhouette */
.roof-silhouette {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 180'%3E%3Cpath d='M0 180 L0 120 L50 100 L100 80 L120 90 L140 70 L160 80 L200 60 L240 80 L260 70 L280 80 L320 60 L360 80 L380 90 L400 70 L420 80 L460 100 L500 80 L540 90 L560 100 L600 120 L600 180Z' fill='%231a1a1a'/%3E%3Cpath d='M80 100 L120 80 L160 100' stroke='%232a2a2a' fill='none' stroke-width='2'/%3E%3Cpath d='M300 60 L340 40 L380 60' stroke='%232a2a2a' fill='none' stroke-width='2'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover; z-index: 2;
}

/* Falling petals */
.petals { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cellipse cx='6' cy='6' rx='5' ry='3' fill='%23f8a4c8' transform='rotate(30 6 6)'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  animation: petalFall linear infinite;
  opacity: 0.7;
}
.petal:nth-child(1) { left: 10%; animation-duration: 6s; animation-delay: 0s; }
.petal:nth-child(2) { left: 25%; animation-duration: 8s; animation-delay: 1s; }
.petal:nth-child(3) { left: 40%; animation-duration: 7s; animation-delay: 2s; }
.petal:nth-child(4) { left: 55%; animation-duration: 9s; animation-delay: 0.5s; }
.petal:nth-child(5) { left: 70%; animation-duration: 6.5s; animation-delay: 3s; }
.petal:nth-child(6) { left: 85%; animation-duration: 7.5s; animation-delay: 1.5s; }
.petal:nth-child(7) { left: 15%; animation-duration: 8.5s; animation-delay: 4s; }
.petal:nth-child(8) { left: 60%; animation-duration: 7s; animation-delay: 2.5s; }
.petal:nth-child(9) { left: 45%; animation-duration: 9s; animation-delay: 3.5s; }

@keyframes petalFall {
  0% { top: -10%; transform: rotate(0deg) translateX(0); opacity: 0.8; }
  100% { top: 110%; transform: rotate(360deg) translateX(40px); opacity: 0.2; }
}

/* Music */
.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: 40%; height: 100vh; overflow-y: auto; background: var(--white);
}
.right-panel::-webkit-scrollbar { width: 3px; }
.right-panel::-webkit-scrollbar-thumb { background: var(--pink-light); }

/* ===== SECTIONS ===== */
.sk-section { padding: 3rem 2rem; }

/* QUOTE */
.sk-quote { padding: 0; }
.sk-quote-header {
  background: var(--crimson); padding: 2.5rem 2rem; text-align: center;
  border-radius: 0 0 0 40px;
}
.sk-label { font-size: 0.7rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.7); }
.sk-title { font-family: var(--font-serif); font-size: 1.8rem; color: white; margin-top: 0.3rem; }
.sk-quote-body { padding: 2rem; background: var(--pink-light); }
.sk-arabic { font-size: 0.9rem; line-height: 2; text-align: center; margin-bottom: 1rem; direction: rtl; }
.sk-translation { font-size: 0.82rem; color: var(--text-light); line-height: 1.7; text-align: center; }
.sk-source { font-size: 0.8rem; font-weight: 700; text-align: center; margin-top: 0.8rem; }

/* COUPLE */
.sk-couple { padding: 0; background: var(--white); }
.sk-wave-top {
  height: 40px; background: var(--crimson);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.sk-couple-content { padding: 2rem; text-align: center; }
.sk-couple-tag { font-size: 0.65rem; letter-spacing: 0.4em; color: var(--text-light); margin-bottom: 1.5rem; }
.sk-person { margin-bottom: 2rem; }
.sk-photo {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1rem;
  overflow: hidden; border: 3px solid var(--pink-light);
}
.sk-photo img { width: 100%; height: 100%; object-fit: cover; }
.sk-person-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--pink); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.sk-person-parents { font-size: 0.8rem; color: var(--text-light); }

/* COUNTDOWN */
.sk-countdown { text-align: center; background: var(--white); }
.sk-cd-tag { font-size: 0.7rem; letter-spacing: 0.4em; margin-bottom: 1.5rem; }
.countdown-timer { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.cd-item { text-align: center; }
.cd-item span { font-family: var(--font-serif); font-size: 2rem; color: var(--pink); display: block; font-weight: 400; }
.cd-item p { font-size: 0.6rem; letter-spacing: 0.15em; color: var(--text-light); text-transform: uppercase; }
.cd-sep { font-size: 1.5rem; color: var(--pink); }

/* EVENT */
.sk-event { background: var(--crimson); color: white; padding: 2.5rem 1.5rem; }
.sk-event-card { margin-bottom: 2rem; }
.sk-event-badge {
  display: inline-block; background: rgba(255,255,255,0.2); padding: 0.3rem 1rem;
  border-radius: 50px; font-size: 0.7rem; margin-bottom: 0.8rem;
}
.sk-event-card h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.8rem; }
.sk-event-card p { font-size: 0.85rem; margin-bottom: 0.4rem; opacity: 0.9; }
.sk-event-card p i { margin-right: 0.4rem; }
.sk-btn {
  display: inline-block; margin-top: 0.8rem; padding: 0.6rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 8px;
  color: white; font-size: 0.8rem; transition: var(--transition);
}
.sk-btn:hover { background: rgba(255,255,255,0.15); }
.map-embed-wrap { display: none; margin-top: 0.8rem; border-radius: 10px; overflow: hidden; }
.map-embed-wrap iframe { width: 100%; height: 180px; border: none; }

/* RSVP */
.sk-rsvp { text-align: center; background: var(--white); }
.sk-rsvp-icon { font-size: 2rem; color: var(--pink); margin-bottom: 0.5rem; }
.sk-rsvp h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--pink); margin-bottom: 0.5rem; }
.sk-rsvp-desc { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1.5rem; }
.sk-rsvp-btns { display: flex; flex-direction: column; gap: 0.8rem; }
.sk-rsvp-choice input { display: none; }
.sk-rsvp-choice span {
  display: block; padding: 0.9rem; border-radius: 50px; text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--crimson));
  color: white; font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.sk-rsvp-choice input:checked + span { box-shadow: 0 4px 16px rgba(196,30,92,0.4); transform: scale(1.02); }

/* LOVE STORY */
.sk-story { background: var(--crimson); color: white; padding: 2.5rem 1.5rem; }
.sk-story-title { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; text-align: center; margin-bottom: 2rem; color: white; }
.timeline { position: relative; padding-left: 1rem; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.3); }
.timeline-item { position: relative; padding-left: 1.5rem; margin-bottom: 1.8rem; }
.timeline-item.left, .timeline-item.right { display: block; flex-direction: unset; }
.timeline-dot { display: none; }
.timeline-content { width: 100%; margin: 0; padding: 1.2rem; background: rgba(255,255,255,0.1); border-radius: 12px; border: none; box-shadow: none; }
.timeline-date { font-size: 0.65rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); display: block; margin-bottom: 0.3rem; }
.timeline-content h4 { font-family: var(--font-serif); font-size: 1rem; color: white; margin-bottom: 0.3rem; font-weight: 700; }
.timeline-content p { font-size: 0.8rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.tl-btns { position: absolute; top: 4px; right: 4px; 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: white; color: var(--pink); }
.tl-del-btn { background: #e74c3c; color: white; }

/* GALLERY */
.sk-gallery { background: var(--crimson); padding: 2.5rem 1.5rem; }
.sk-gallery-title { font-size: 0.75rem; letter-spacing: 0.3em; color: white; text-align: center; margin-bottom: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; border-radius: 10px; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-del-btn { display: none; position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(231,76,60,0.9); border: none; color: white; font-size: 0.6rem; cursor: pointer; align-items: center; justify-content: center; z-index: 5; }
.gallery-overlay { display: none; }

/* GIFT */
.sk-gift { background: var(--white); }
.sk-gift h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.8rem; }
.sk-gift-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.sk-gift-card { border: 1px solid #eee; border-radius: 12px; padding: 1.2rem; text-align: center; margin-bottom: 1rem; }
.sk-gift-card h4 { font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.gift-account { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.gift-holder { font-size: 0.78rem; color: var(--text-light); }
.gift-qris { margin: 0.5rem 0; }
.qris-img { max-width: 100px; margin: 0 auto; border-radius: 6px; }

/* WISHES */
.sk-wishes { background: var(--crimson); color: white; padding: 2.5rem 1.5rem; }
.sk-wishes h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 1rem; text-align: center; }
#wishForm textarea { width: 100%; padding: 0.8rem; border: none; border-radius: 8px; font-size: 0.88rem; font-family: inherit; outline: none; resize: vertical; margin-bottom: 0.8rem; }
.sk-btn-full { width: 100%; padding: 0.8rem; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); color: white; border: none; border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.wishes-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.wish-item { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 1rem; border: 1px solid rgba(255,255,255,0.15); }
.wish-header { margin-bottom: 0.3rem; }
.wish-avatar { display: none; }
.wish-name { font-weight: 700; font-size: 0.88rem; color: white; }
.wish-time { display: none; }
.wish-text { font-size: 0.82rem; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* CLOSING */
.sk-closing { background: var(--white); text-align: center; padding: 3rem 2rem; }
.sk-closing-label { font-size: 0.65rem; letter-spacing: 0.4em; color: var(--pink); margin-bottom: 0.3rem; }
.sk-closing-names { font-family: var(--font-serif); font-size: 1.5rem; color: var(--pink); margin-bottom: 1rem; }
.sk-closing-photos { display: flex; justify-content: center; gap: -10px; }
.sk-closing-photos img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid white; margin-left: -8px; }
.sk-closing-photos img:first-child { margin-left: 0; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); 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(--pink); color: white; padding: 0.7rem 1.4rem; border-radius: 8px; font-size: 0.8rem; z-index: 99999; opacity: 0; transition: all 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* FLOATING NAV hidden */
.floating-nav { display: none !important; }

/* EDITOR FIX */
body.editor-active .right-panel { width: calc(40% - 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); }
}
