/* ==========================================================================
   Cemara Digital Invitation - Luxury Wedding Demo Theme Stylesheet
   Theme: Royal Gold & Deep Emerald / Floral Elegance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@500;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --w-gold: #d4af37;
    --w-gold-light: #f7e8a4;
    --w-gold-dark: #a8851c;
    --w-emerald: #0b2e24;
    --w-emerald-light: #154537;
    --w-cream: #faf7f2;
    --w-text: #2d3748;
    --w-text-muted: #718096;
    --w-card-bg: rgba(255, 255, 255, 0.95);
    
    --w-font-serif: 'Playfair Display', serif;
    --w-font-cursive: 'Alex Brush', cursive;
    --w-font-cinzel: 'Cinzel', serif;
    --w-font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--w-emerald);
    color: var(--w-text);
    font-family: var(--w-font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrolllock when cover gate is active */
body.cover-locked {
    overflow: hidden !important;
}

/* --- Opening Cover / Gate Overlay --- */
.cover-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(rgba(11, 46, 36, 0.85), rgba(11, 46, 36, 0.95)), 
                url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: #ffffff;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.cover-gate.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cover-content {
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--w-gold);
    padding: 48px 32px;
    border-radius: 24px;
    background: rgba(11, 46, 36, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.cover-subtitle {
    font-family: var(--w-font-cinzel);
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--w-gold-light);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cover-names {
    font-family: var(--w-font-cursive);
    font-size: 3.5rem;
    color: var(--w-gold);
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cover-guest-box {
    margin: 28px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px dashed rgba(212, 175, 55, 0.4);
}

.cover-guest-label {
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.cover-guest-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--w-gold-light);
}

.btn-buka-undangan {
    background: linear-gradient(135deg, var(--w-gold), var(--w-gold-dark));
    color: #0b2e24;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.btn-buka-undangan:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
}

/* --- Floating Music Control --- */
.audio-control {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--w-gold);
    color: var(--w-emerald);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.audio-control.playing {
    animation: rotateVinyl 4s linear infinite;
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Main Layout Wrapper --- */
.wedding-wrapper {
    max-width: 540px;
    margin: 0 auto;
    background-color: var(--w-cream);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    position: relative;
    padding-bottom: 90px;
}

.w-section {
    padding: 60px 24px;
    position: relative;
    text-align: center;
}

.w-section-dark {
    background-color: var(--w-emerald);
    color: #ffffff;
}

.w-title-cursive {
    font-family: var(--w-font-cursive);
    font-size: 3.2rem;
    color: var(--w-gold);
    margin-bottom: 8px;
}

.w-title-serif {
    font-family: var(--w-font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--w-emerald);
    margin-bottom: 12px;
}

.w-section-dark .w-title-serif {
    color: #ffffff;
}

.w-subtitle {
    font-size: 0.95rem;
    color: var(--w-text-muted);
    margin-bottom: 32px;
}

.w-section-dark .w-subtitle {
    color: #cbd5e1;
}

/* --- Hero Banner --- */
.w-hero {
    height: 90vh;
    min-height: 560px;
    background: linear-gradient(to bottom, rgba(11,46,36,0.4), rgba(11,46,36,0.85)),
                url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 48px 24px 80px 24px;
    color: #ffffff;
    text-align: center;
}

.w-hero-subtitle {
    font-family: var(--w-font-cinzel);
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: var(--w-gold-light);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.w-hero-title {
    font-family: var(--w-font-cursive);
    font-size: 4rem;
    color: var(--w-gold);
    line-height: 1.1;
    margin-bottom: 16px;
}

.w-hero-date {
    font-family: var(--w-font-serif);
    font-size: 1.15rem;
    letter-spacing: 1px;
}

/* --- Couple Section --- */
.couple-card {
    margin-bottom: 40px;
}

.couple-photo-frame {
    width: 170px;
    height: 170px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--w-gold), var(--w-gold-dark));
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.couple-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.couple-name {
    font-family: var(--w-font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w-emerald);
    margin-bottom: 6px;
}

.couple-parents {
    font-size: 0.9rem;
    color: var(--w-text-muted);
    line-height: 1.5;
}

.couple-ampersand {
    font-family: var(--w-font-cursive);
    font-size: 3.5rem;
    color: var(--w-gold);
    margin: 20px 0;
}

/* --- Countdown Section --- */
.countdown-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.timer-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 16px 8px;
}

.timer-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--w-gold);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.timer-label {
    font-size: 0.75rem;
    color: #e2e8f0;
    text-transform: uppercase;
}

/* --- Event Schedule --- */
.event-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.event-icon {
    width: 50px;
    height: 50px;
    background: rgba(11, 46, 36, 0.08);
    color: var(--w-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px auto;
}

.event-title {
    font-family: var(--w-font-serif);
    font-size: 1.5rem;
    color: var(--w-emerald);
    margin-bottom: 8px;
}

.event-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--w-gold-dark);
    margin-bottom: 12px;
}

.event-location {
    font-size: 0.9rem;
    color: var(--w-text-muted);
    margin-bottom: 20px;
}

/* --- Love Story Timeline --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--w-gold);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-date {
    font-weight: 700;
    color: var(--w-gold-dark);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.timeline-title {
    font-family: var(--w-font-serif);
    font-size: 1.1rem;
    color: var(--w-emerald);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* --- Hadiah / Amplop Digital --- */
.bank-card {
    background: linear-gradient(135deg, #154537, #0b2e24);
    color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--w-gold);
    text-align: left;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.bank-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--w-gold-light);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-acc-num {
    font-family: monospace;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 6px;
}

.bank-acc-name {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.btn-copy-acc {
    margin-top: 16px;
    background: var(--w-gold);
    color: #0b2e24;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- RSVP & Guestbook --- */
.rsvp-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: left;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--w-emerald);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--w-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

.wish-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid var(--w-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wish-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--w-emerald);
}

.wish-status {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 50px;
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.wish-text {
    font-size: 0.88rem;
    color: var(--w-text);
}

/* --- Sticky Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(11, 46, 36, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--w-gold);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.bottom-nav-item {
    color: #cbd5e1;
    font-size: 1.1rem;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--w-gold);
    transform: scale(1.15);
}

/* Toast Message */
.toast-msg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--w-gold);
    color: #0b2e24;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
}
