/* assets/css/template-islami.css - tema "Islami Elegan" */

:root {
    --accent: #0f5132;
    --accent-soft: #d4af37;
    --bg: #fbf9f4;
    --text: #2b2b2b;
    --line: #e6ddc4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
}

.invite-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: #fffdf8;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--accent-soft);
    border-right: 6px solid var(--accent-soft);
}

.cover-screen {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}
.cover-screen::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(15,81,50,0.55), rgba(15,81,50,0.85));
}
.cover-screen > * { position: relative; z-index: 1; }
.cover-screen .bismillah { font-size: 20px; margin-bottom: 18px; letter-spacing: 1px; }
.cover-screen .kepada { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.9; color: var(--accent-soft); }
.cover-screen h1 { font-size: 32px; margin: 10px 0; font-family: 'Georgia', serif; }
.btn-open {
    margin-top: 26px;
    padding: 12px 30px;
    border: 1px solid var(--accent-soft);
    background: transparent;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
}
.btn-open:hover { background: var(--accent-soft); color: var(--accent); }

.content-section { display: none; }
.content-section.show { display: block; }

section { padding: 48px 24px; text-align: center; border-bottom: 1px dashed var(--line); }
section h2 { font-size: 20px; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; }
.ayat { font-size: 12px; color: #8a8262; margin-bottom: 20px; font-style: italic; }
.mempelai-nama { font-size: 28px; margin: 6px 0; color: var(--accent); font-weight: normal; }
.mempelai-anak { font-size: 13px; color: #777; margin-bottom: 24px; }

#countdown { display: flex; justify-content: center; gap: 10px; margin: 24px 0; }
#countdown div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 60px; }
#countdown span { display: block; font-size: 20px; font-weight: bold; color: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; border: 2px solid var(--accent-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.18); position: relative; z-index: 1; }

.map-frame iframe { width: 100%; height: 260px; border: 0; border-radius: 8px; }

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit;
}
.btn-primary {
    background: var(--accent); color: #fff; border: none; padding: 12px 24px; border-radius: 30px; cursor: pointer;
}

.guestbook-list { text-align: left; max-height: 300px; overflow-y: auto; margin-top: 20px; }
.guestbook-item { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.guestbook-item .nama { font-weight: bold; color: var(--accent); }
.guestbook-item .waktu { font-size: 11px; color: #999; }

.gift-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; text-align: left; }
.gift-box img { max-width: 180px; display: block; margin: 10px auto; }

.flash-msg { padding: 10px; border-radius: 6px; margin: 16px 0; font-size: 14px; }
.flash-msg.success { background: #e6f4ea; color: #1e7e34; }
.flash-msg.error { background: #fdecea; color: #c0392b; }

.music-toggle {
    position: fixed; bottom: 16px; right: calc(50% - 240px + 16px);
    background: var(--accent); color: #fff; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; z-index: 10;
}

footer.credit { text-align: center; padding: 24px; font-size: 12px; color: #999; }

/* Integrasi tamu personal (uid) + QR check-in */
.vip-badge {
    display: inline-block; background: var(--accent-soft); color: #2b2b2b; font-size: 11px; font-weight: bold;
    letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; margin-top: 8px; text-transform: uppercase;
}
.qr-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0 0 12px; }
.qr-box img { max-width: 220px; width: 100%; display: block; margin: 12px auto 0; border-radius: 6px; }
.qr-box p { font-size: 13px; color: #777; margin: 0; }
.rsvp-form input[readonly] { background: #f0ece0; color: #777; cursor: not-allowed; }
