/* assets/css/template-modern.css - tema "Modern Minimalis" */

:root {
    --accent: #1f2937;
    --accent-soft: #6b7280;
    --bg: #ffffff;
    --text: #111827;
    --line: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.invite-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.cover-screen {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    color: #fff;
    text-align: left;
    padding: 48px 32px;
    position: relative;
}
.cover-screen::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}
.cover-screen > * { position: relative; z-index: 1; }
.cover-screen .kepada { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.8; }
.cover-screen h1 { font-size: 40px; margin: 8px 0; font-weight: 800; line-height: 1.1; }
.btn-open {
    margin-top: 28px;
    padding: 14px 30px;
    border: none;
    background: #fff;
    color: var(--accent);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}

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

section { padding: 56px 28px; text-align: left; border-bottom: 1px solid var(--line); }
section h2 { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 20px; font-weight: 700; }
.mempelai-nama { font-size: 32px; font-weight: 800; margin: 4px 0; }
.mempelai-anak { font-size: 13px; color: var(--accent-soft); margin-bottom: 28px; }

#countdown { display: flex; gap: 10px; margin: 24px 0; }
#countdown div { background: #f9fafb; border-radius: 4px; padding: 14px 10px; min-width: 60px; text-align: center; }
#countdown span { display: block; font-size: 24px; font-weight: 800; color: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-grid img { width: 100%; height: 110px; object-fit: cover; 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; }

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit;
}
.btn-primary {
    background: var(--accent); color: #fff; border: none; padding: 14px 26px; border-radius: 4px; cursor: pointer;
    font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; font-size: 13px;
}

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

.gift-box { background: #f9fafb; border-radius: 4px; padding: 16px; margin-bottom: 12px; text-align: left; }
.gift-box img { max-width: 180px; display: block; margin: 10px auto; }

.flash-msg { padding: 12px; border-radius: 4px; margin: 16px 0; font-size: 14px; }
.flash-msg.success { background: #ecfdf5; color: #065f46; }
.flash-msg.error { background: #fef2f2; color: #991b1b; }

.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: left; padding: 28px; font-size: 11px; color: var(--accent-soft); }

/* Integrasi tamu personal (uid) + QR check-in */
.vip-badge {
    display: inline-block; background: #111827; color: #fff; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; padding: 5px 14px; border-radius: 2px; margin-top: 10px; text-transform: uppercase;
}
.qr-box { background: #f9fafb; padding: 20px; margin: 0 0 12px; }
.qr-box img { max-width: 220px; width: 100%; display: block; margin: 12px auto 0; }
.qr-box p { font-size: 13px; color: var(--accent-soft); margin: 0; }
.rsvp-form input[readonly] { background: #f3f4f6; color: var(--accent-soft); cursor: not-allowed; }
