/* ===== Gold Classic — style.css ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* --primary-color di-override dari config.json lewat template.php */
    --primary-color: #aa8c2c;
    --bg-light: #fcfbf7;
    --text-dark: #333;
    --text-muted: #666;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-cursive: 'Alex Brush', cursive;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== COVER ===== */
.cover-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 20px; text-align: center; color: #fff;
    background-color: #2b2418;
    background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.6)), var(--cover-img, none);
    background-repeat: no-repeat; background-position: center; background-size: cover;
    transition: transform 1.2s cubic-bezier(.77,0,.175,1), opacity 1.2s ease-in-out;
}
.cover-overlay.opened { transform: translateY(-100vh); opacity: 0; pointer-events: none; }

/* Animasi muncul bergantian (hanya untuk elemen di cover) */
.cover-overlay .cover-title,
.cover-overlay .cover-names,
.cover-overlay .cover-to,
.cover-overlay .guest-name,
.cover-overlay .btn-open {
    opacity: 0;
    animation: munculPelan 1.5s cubic-bezier(.25,1,.5,1) forwards;
}
.cover-title {
    font-size: .9rem; text-transform: uppercase; letter-spacing: 4px;
    margin-bottom: 10px; font-weight: 300; animation-delay: .3s;
}
.cover-title.static { color: var(--primary-color); }
.cover-names {
    font-family: var(--font-serif); font-size: 3.5rem; margin-bottom: 20px;
    color: #f1e4be; animation-delay: .8s;
}
.cover-to { font-size: .9rem; font-weight: 300; margin-bottom: 5px; color: #ddd; animation-delay: 1.3s; }
.guest-name {
    display: inline-block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600;
    margin-bottom: 30px; padding: 5px 20px; border-radius: 20px;
    background: rgba(255,255,255,.1); color: #fff; animation-delay: 1.6s;
}
.btn-open {
    padding: 14px 32px; background: var(--primary-color); color: #fff; border: 0;
    border-radius: 30px; font-size: .9rem; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; font-weight: 500; box-shadow: 0 4px 15px rgba(0,0,0,.3);
    transition: transform .3s ease, filter .3s ease; animation-delay: 2.1s;
}
.btn-open:hover { filter: brightness(1.1); transform: scale(1.05); }

@keyframes munculPelan {
    0%   { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ===== MUSIK ===== */
.music-control {
    position: fixed; bottom: 25px; right: 25px; width: 50px; height: 50px; z-index: 999;
    display: none; justify-content: center; align-items: center;
    background: var(--primary-color); color: #fff; border-radius: 50%; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ===== LAYOUT ===== */
.main-container {
    max-width: 500px; margin: 0 auto; min-height: 100vh;
    background: #fff; box-shadow: 0 0 30px rgba(0,0,0,.05);
}
section { padding: 60px 25px; text-align: center; }
.section-title { font-family: var(--font-cursive); font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 400; }
.section-subtitle { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 40px; }
.note-text { font-size: .85rem; color: var(--text-muted); line-height: 1.6; max-width: 400px; margin: 0 auto 30px; }

/* ===== WELCOME ===== */
.welcome-section { background: linear-gradient(to bottom, #fffcf5, #fff); }
.welcome-names { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; margin-bottom: 25px; }
.welcome-quote { font-size: .9rem; line-height: 1.8; color: var(--text-muted); font-style: italic; }
.welcome-date-text { margin-top: 25px; font-size: .95rem; letter-spacing: 1px; }

/* ===== COUNTDOWN ===== */
.countdown-container { display: flex; justify-content: space-around; margin-top: 30px; }
.countdown-item {
    display: flex; flex-direction: column; align-items: center; width: 75px; padding: 12px 0;
    background: #fff; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.04);
}
.countdown-number { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); }
.countdown-label { font-size: .7rem; text-transform: uppercase; color: #888; margin-top: 2px; }

/* ===== SAVE THE DATE ===== */
.btn-save-date {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    margin-top: 30px; padding: 12px 28px; overflow: hidden; text-decoration: none;
    background: linear-gradient(135deg, #fdfbf7, #fffbf0); color: var(--primary-color);
    border: 2px solid var(--primary-color); border-radius: 30px;
    font-size: .85rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    transition: all .4s cubic-bezier(.25,1,.5,1); box-shadow: 0 4px 15px rgba(170,140,44,.1);
    -webkit-tap-highlight-color: transparent;
}
.btn-save-date::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(212,175,55,.3), rgba(255,255,255,0));
    transform: skewX(-25deg); animation: kilauCahaya 3.5s infinite ease-in-out;
}
.btn-save-date:hover { background: var(--primary-color); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(170,140,44,.4); }
.btn-save-date:active { transform: translateY(-1px); }
@keyframes kilauCahaya { 0% { left: -150%; } 30% { left: 150%; } 100% { left: 150%; } }

/* ===== MEMPELAI ===== */
.profile-card { margin-bottom: 45px; }
.mempelai-img {
    width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 15px;
    border: 3px solid var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.mempelai-name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 5px; }
.parent-info { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.btn-instagram {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; text-decoration: none;
    border: 1px solid var(--primary-color); border-radius: 20px; color: var(--primary-color);
    font-size: .8rem; font-weight: 500; transition: all .3s;
}
.btn-instagram:hover { background: var(--primary-color); color: #fff; }
.ampersand { font-family: var(--font-cursive); font-size: 3.5rem; color: var(--primary-color); margin: 20px 0; }

/* ===== ACARA ===== */
.event-section { background: #faf8f2; }
.event-box { background: #fff; padding: 30px 20px; border-radius: 15px; margin-bottom: 30px; border: 1px solid #eee; box-shadow: 0 5px 20px rgba(0,0,0,.03); }
.event-title { font-family: var(--font-serif); font-size: 1.4rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 600; }
.event-details { font-size: .9rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; }
.btn-maps {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; text-decoration: none;
    background: var(--text-dark); color: #fff; border-radius: 25px;
    font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; transition: background .3s;
}
.btn-maps:hover { background: var(--primary-color); }

/* ===== LOVE STORY ===== */
.story-section { position: relative; background: #fffaf0; overflow: hidden; padding: 80px 20px; }
.decor-flower { position: absolute; color: rgba(170,140,44,.12); font-size: 5rem; z-index: 1; }
.decor-flower.top-left { top: -10px; left: -20px; transform: rotate(45deg); }
.decor-flower.bottom-right { bottom: -10px; right: -20px; transform: rotate(225deg); }
.decor-love { position: absolute; color: rgba(212,100,100,.08); font-size: 2.5rem; z-index: 1; animation: denyutLove 3s infinite ease-in-out; }
.decor-love.love-1 { top: 20%; right: 10%; animation-delay: .5s; }
.decor-love.love-2 { bottom: 30%; left: 8%; animation-delay: 1.5s; }

.timeline { position: relative; padding: 20px 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 2px; background: rgba(170,140,44,.3); }
.timeline-item { position: relative; margin-bottom: 35px; }
.timeline-item::after { content: " "; display: table; clear: both; }
.timeline-panel {
    position: relative; float: right; width: calc(100% - 70px); z-index: 2; text-align: left;
    background: #fff; border: 1px solid rgba(170,140,44,.15); padding: 20px; border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,.02);
}
.timeline-panel::before {
    content: " "; position: absolute; top: 15px; left: -11px; border-top: 11px solid transparent;
    border-right: 11px solid rgba(170,140,44,.15); border-bottom: 11px solid transparent;
}
.timeline-panel::after {
    content: " "; position: absolute; top: 16px; left: -10px; border-top: 10px solid transparent;
    border-right: 10px solid #fff; border-bottom: 10px solid transparent;
}
.timeline-badge {
    position: absolute; top: 12px; left: 15px; width: 32px; height: 32px; line-height: 32px; z-index: 3;
    text-align: center; color: #fff; background: var(--primary-color); border-radius: 50%;
    font-size: .85rem; box-shadow: 0 0 10px rgba(170,140,44,.3);
}
.story-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; color: #333; }
.story-date { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--primary-color); }
.timeline-body p { font-size: .85rem; color: #666; line-height: 1.6; }
@keyframes denyutLove {
    0%, 100% { transform: scale(1); opacity: .5; }
    50% { transform: scale(1.15); opacity: .9; filter: drop-shadow(0 0 5px rgba(212,100,100,.3)); }
}

/* ===== GALERI ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.gallery-item { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,.05); transition: transform .3s; }
.gallery-item:hover { transform: scale(1.03); }

/* ===== GIFT ===== */
.gift-section { background: #fffcf5; }
.bank-card { background: #fff; border: 1px dashed var(--primary-color); padding: 25px; border-radius: 12px; max-width: 350px; margin: 20px auto; }
.bank-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 5px; }
.bank-owner { font-size: .85rem; color: #777; }
.account-number { display: block; font-family: monospace; font-size: 1.2rem; letter-spacing: 1px; margin: 10px 0; }
.btn-copy { padding: 6px 18px; background: var(--primary-color); color: #fff; border: 0; border-radius: 15px; font-size: .75rem; cursor: pointer; }

/* ===== RSVP ===== */
.rsvp-section { background: #fff; }
.rsvp-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.rsvp-form {
    max-width: 400px; margin: 0 auto; text-align: left; background: #fffcf5;
    border: 1px solid rgba(170,140,44,.2); padding: 30px 20px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(170,140,44,.05);
}
.form-group { margin-bottom: 20px; }
.form-group[hidden] { display: none; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: #4a4a4a; margin-bottom: 8px; }
.form-group input, .form-group select,
.form-group-wishes input, .form-group-wishes textarea {
    width: 100%; padding: 12px 15px; border: 1.5px solid rgba(170,140,44,.3); border-radius: 10px;
    background: #fff; color: #333; font: inherit; font-size: .9rem; outline: none; transition: all .3s;
}
.form-group-wishes textarea { resize: none; }
.form-group input:focus, .form-group select:focus,
.form-group-wishes input:focus, .form-group-wishes textarea:focus {
    border-color: var(--primary-color); box-shadow: 0 0 8px rgba(170,140,44,.2);
}
.btn-submit-rsvp, .btn-send-wishes {
    width: 100%; padding: 14px; border: 0; border-radius: 30px; color: #fff; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), #cbaf51);
    box-shadow: 0 4px 15px rgba(170,140,44,.3); transition: all .3s;
}
.btn-submit-rsvp:hover, .btn-send-wishes:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(170,140,44,.45); }
.btn-send-wishes { background: linear-gradient(135deg, #d46464, #b84a4a); box-shadow: 0 4px 15px rgba(212,100,100,.3); }
.btn-send-wishes:disabled { opacity: .7; cursor: wait; }

/* ===== UCAPAN ===== */
.wishes-section { position: relative; overflow: hidden; padding: 80px 20px; background: linear-gradient(to bottom, #fff, #fff5f5); }
.wishes-decor { position: absolute; color: rgba(212,100,100,.1); z-index: 1; }
.wishes-decor.flower-l { top: 5%; left: -15px; font-size: 4.5rem; transform: rotate(15deg); }
.wishes-decor.flower-r { bottom: 10%; right: -15px; font-size: 4.5rem; transform: rotate(-45deg); color: rgba(170,140,44,.1); }
.wishes-decor.love-float { top: 40%; right: 8%; font-size: 2rem; animation: floatLove 4s infinite ease-in-out; }
.wishes-card-form {
    position: relative; z-index: 2; max-width: 400px; margin: 0 auto 40px; text-align: left;
    background: #fff; border: 1px solid rgba(212,100,100,.15); padding: 25px 20px; border-radius: 20px;
    box-shadow: 0 10px 25px rgba(212,100,100,.04);
}
.form-group-wishes { margin-bottom: 15px; }
.wishes-display-container { position: relative; z-index: 2; max-width: 400px; margin: 0 auto; max-height: 400px; overflow-y: auto; padding-right: 5px; text-align: left; }
.wishes-display-container::-webkit-scrollbar { width: 4px; }
.wishes-display-container::-webkit-scrollbar-thumb { background: rgba(170,140,44,.2); border-radius: 10px; }
#emptyWishMessage { text-align: center; color: #999; font-size: .85rem; padding: 20px; font-style: italic; }
.wish-item {
    display: flex; gap: 12px; margin-bottom: 15px; padding: 15px; background: #fff;
    border: 1px solid #f1ece1; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.02);
    animation: ucapanMasuk .6s cubic-bezier(.23,1,.32,1) forwards;
}
.wish-avatar { width: 35px; height: 35px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; background: #f4efe2; color: var(--primary-color); border-radius: 50%; font-size: .9rem; }
.wish-content { flex-grow: 1; }
.wish-content h5 { font-size: .9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.wish-content p { font-size: .85rem; color: #555; line-height: 1.5; margin-bottom: 6px; font-style: italic; }
.wish-time { display: block; font-size: .7rem; color: #aaa; }
@keyframes floatLove {
    0%, 100% { transform: translateY(0) scale(1); opacity: .4; }
    50% { transform: translateY(-15px) scale(1.1); opacity: .8; }
}
@keyframes ucapanMasuk { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

/* ===== PENUTUP ===== */
.expectation-section {
    position: relative; overflow: hidden; padding: 80px 20px;
    background: linear-gradient(to bottom, #fffdf9, #fffbf2);
    border-top: 1px solid rgba(170,140,44,.1); border-bottom: 1px solid rgba(170,140,44,.1);
}
.expectation-container { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 40px; }
.expectation-text { max-width: 650px; margin: 0 auto 25px; font-size: .88rem; color: #555; line-height: 1.8; letter-spacing: .3px; }
.expectation-sub { font-size: .8rem; color: var(--primary-color); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 500; }
.expectation-names { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 3.5rem; color: var(--primary-color); letter-spacing: 1px; }
.btn-music-toggle {
    position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; display: flex; justify-content: center; align-items: center;
    background: #fff; border: 1.5px solid rgba(170,140,44,.3); color: var(--primary-color);
    border-radius: 50%; font-size: .85rem; cursor: pointer; transition: all .3s;
}
.btn-music-toggle:hover { background: var(--primary-color); color: #fff; }
.wave-decoration { position: absolute; left: 0; width: 100%; height: 25px; z-index: 1; background-repeat: no-repeat; background-size: 100% 100%; }
.wave-decoration.top { top: 0; transform: rotate(180deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,60 700,60 1000,0 L1000,100 L0,100 Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.wave-decoration.bottom { bottom: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,40 700,40 1000,0 L1000,100 L0,100 Z' fill='%23222222'/%3E%3C/svg%3E"); }

/* ===== FOOTER ===== */
footer { padding: 40px 20px; background: #222; color: #888; text-align: center; font-size: .75rem; letter-spacing: 1px; }
footer .credit { margin-top: 5px; color: #666; font-size: .65rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .cover-names { font-size: 2.8rem; }
    .expectation-names { font-size: 2.8rem; }
    .expectation-text { font-size: .82rem; line-height: 1.7; }
    .btn-music-toggle { right: 5px; top: auto; bottom: -20px; transform: none; }
}
