/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #8C7251; /* Warna Emas Kecoklatan (Elegan) */
    --bg-light: #F9F8F6;
    --text-dark: #333333;
    --text-muted: #666666;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #e0e0e0;
    overflow: hidden; /* Dikunci saat cover */
}

/* Membatasi lebar agar tampil rapi di HP */
.cover-page, .main-content {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* =========================================
   2. COVER SECTION
   ========================================= */
.cover-page {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 100vh;
    z-index: 999;
    background-size: cover;
    background-position: center;
    transition: top 1s ease-in-out;
}

.cover-content {
    position: absolute;
    bottom: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.subtitle { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.title-names { font-family: var(--font-heading); font-size: 42px; margin-bottom: 5px; }
.date-cover { font-size: 16px; margin-bottom: 30px; border-bottom: 1px solid white; padding-bottom: 5px; }

.guest-box { margin-bottom: 30px; }
.guest-box p { font-size: 12px; opacity: 0.8; }
.guest-box h3 { font-size: 20px; font-weight: 600; margin-top: 5px; }

/* =========================================
   3. MAIN CONTENT
   ========================================= */
.main-content {
    display: none;
    background: white;
}

.section { padding: 60px 20px; text-align: center; }
.bg-light { background-color: var(--bg-light); }

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-primary:hover { background-color: #6e593e; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 15px;
    cursor: pointer;
}

/* Countdown */
.countdown-box { display: flex; justify-content: center; gap: 15px; }
.cd-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 10px;
    min-width: 70px;
    border: 1px solid #eee;
}
.cd-item h3 { font-family: var(--font-heading); font-size: 28px; color: var(--primary-color); }
.cd-item p { font-size: 12px; }

/* Profil & Galeri */
.img-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}
.name-profile { font-family: var(--font-heading); font-size: 26px; }
.dan-ampersand { font-family: var(--font-heading); font-size: 40px; color: var(--primary-color); margin: 30px 0; }
.img-event { width: 100%; border-radius: 15px; margin-bottom: 20px; }
.gallery { display: flex; flex-direction: column; gap: 15px; }
.gallery img { width: 100%; border-radius: 10px; object-fit: cover; }

/* Gift Section */
.card-bank, .card-address {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.card-bank h2 { font-family: var(--font-heading); font-size: 32px; color: var(--primary-color); margin: 10px 0; }

/* =========================================
   4. RSVP & GUESTBOOK (PREMIUM STYLE)
   ========================================= */
.rsvp-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    border: 1px solid #f0eae1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%; 
    padding: 15px; 
    border: 1px solid #e0d8c3; 
    border-radius: 8px; 
    font-family: var(--font-body);
    background-color: #faf9f7;
    color: var(--text-dark);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 8px rgba(140, 114, 81, 0.2);
}

.ucapan-list { 
    max-height: 350px; 
    overflow-y: auto;  
    text-align: left; 
    padding-right: 10px;
}

.ucapan-list::-webkit-scrollbar { width: 6px; }
.ucapan-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px;}
.ucapan-list::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

.ucapan-item { 
    background: white;
    padding: 18px; 
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.ucapan-item h4 { 
    font-family: var(--font-heading); 
    font-size: 18px; 
    color: var(--primary-color); 
    margin-bottom: 5px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-hadir {
    font-family: var(--font-body);
    font-size: 11px;
    background: #f0eae1;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 12px;
}

.ucapan-item p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

/* =========================================
   EVENT CARD (RESEPSI ELEGAN)
   ========================================= */
.event-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    text-align: left;
}

.event-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px dashed #e6e0d6;
}

.event-item:last-child {
    border-bottom: none;
}

.event-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.event-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-body);
}

/* =========================================
   5. ADMIN POPUP & FLOATING BUTTONS
   ========================================= */
#btn-music {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--primary-color); color: white;
    border: none; border-radius: 50%;
    width: 45px; height: 45px; font-size: 20px;
    cursor: pointer; z-index: 1000; display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-admin-gear {
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    background: white; 
    color: var(--text-dark);
    border: 1px solid #ddd; 
    border-radius: 50%;
    width: 45px; height: 45px; 
    font-size: 22px;
    cursor: pointer; 
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.btn-admin-gear:hover {
    transform: rotate(90deg); 
}

.admin-panel-popup {
    display: none; 
    position: fixed;
    bottom: 75px; 
    left: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--primary-color);
    z-index: 1001;
    width: 300px;
    text-align: left;
    font-family: var(--font-body);
}

.admin-panel-popup h4 { color: var(--primary-color); font-family: var(--font-heading); font-size: 22px;}
.input-admin { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; outline: none; }
.input-admin:focus { border-color: var(--primary-color); }
.textarea-admin { width: 100%; height: 60px; padding: 10px; font-size: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; resize: none;}