/* Base Wedding Invitation Invitation view layout styling */
.invitation-body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.invitation-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.invitation-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Template 1: Classic Romance (Soft Pinks, Serif elegance) */
.tpl-1 {
    background-color: #fff9f9;
    color: #4a3b32;
    --primary: #d4a5b8;
    --accent: #a37b8d;
    --card-bg: #ffffff;
    --border: 1px solid #f2d8e4;
}
.tpl-1 .invitation-title {
    color: #a37b8d;
    font-family: 'Playfair Display', serif;
}

/* Template 2: Modern Glassmorphic (Neon Glows, Dark Glass) */
.tpl-2 {
    background: radial-gradient(circle at 50% 50%, #1e1335, #0a0614);
    color: #f7fafc;
    --primary: #9f7aea;
    --accent: #ed64a6;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.tpl-2 .invitation-title {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Template 3: Rustic Floral (Earth tones, Sage Green & Wood) */
.tpl-3 {
    background-color: #f4efe6;
    color: #2d3748;
    --primary: #8f9779; /* Sage */
    --accent: #c68b59; /* Clay */
    --card-bg: #fcfbfa;
    --border: 1px solid #e2dacf;
}
.tpl-3 .invitation-title {
    color: #5c6347;
    font-family: 'Cinzel', serif;
}

/* Template 4: Royal Gold (Deep Navy & Symmetrical Gold) */
.tpl-4 {
    background-color: #0b132b;
    color: #e2e8f0;
    --primary: #d4af37; /* Royal Gold */
    --accent: #1c2541;
    --card-bg: #1c2541;
    --border: 2px solid #d4af37;
}
.tpl-4 .invitation-title {
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Template 5: Minimalist Sage (Neutral clean, light design) */
.tpl-5 {
    background-color: #f7f9f6;
    color: #2d3748;
    --primary: #6b7c66; /* Forest/Sage */
    --accent: #e2e8f0;
    --card-bg: #ffffff;
    --border: 1px solid #e8ede6;
}
.tpl-5 .invitation-title {
    color: #1a202c;
    font-weight: 300;
}

/* Template 6: Midnight Luxury (Obsidian, Silver glow) */
.tpl-6 {
    background-color: #050508;
    color: #cbd5e0;
    --primary: #a0aec0; /* Silver */
    --accent: #1a1a24;
    --card-bg: #111116;
    --border: 1px solid #2d3748;
}
.tpl-6 .invitation-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Template 7: Vintage Autumn (Deep Warm Terracotta) */
.tpl-7 {
    background-color: #2c1b18;
    color: #ebdcd5;
    --primary: #c87a53; /* Terracotta */
    --accent: #1c100e;
    --card-bg: #3b2824;
    --border: 1px solid #543b35;
}
.tpl-7 .invitation-title {
    color: #c87a53;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Template 8: Ethereal Garden (Soft mint-white & forest green) */
.tpl-8 {
    background-color: #f3f7f2;
    color: #2f3e2e;
    --primary: #5e8c61; /* Leaf Green */
    --accent: #e6eee5;
    --card-bg: #ffffff;
    --border: 1px solid #dbe6da;
}
.tpl-8 .invitation-title {
    color: #5e8c61;
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
    letter-spacing: -1px;
}

/* Shared Invitation Card components */
.invite-card {
    background: var(--card-bg);
    border: var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.mempelai-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.mempelai-card {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    padding: 24px;
}

.mempelai-card h3 {
    font-size: 1.8rem;
    margin: 15px 0 5px 0;
    font-family: 'Playfair Display', serif;
}

.mempelai-card p {
    color: var(--primary);
    font-size: 0.9rem;
    font-style: italic;
}

.mempelai-social {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.divider-and {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Cover Overlay */
.cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.cover-overlay.opened {
    transform: translateY(-100%);
}

.cover-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cover-to {
    margin: 30px 0;
    font-size: 1.1rem;
}

.cover-guest-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
}

.music-control-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.audio-player {
    display: none;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: left;
    padding-left: 20px;
    border-left: 2px solid var(--primary);
}

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

.timeline-event::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.timeline-title {
    font-weight: 600;
    margin: 5px 0;
}

/* RSVP form input overrides */
.tpl-2 input, .tpl-2 select, .tpl-2 textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.wishes-list {
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    margin-top: 30px;
}

.wish-item {
    background-color: var(--card-bg);
    border: var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.wish-name {
    font-weight: 700;
    color: var(--primary);
}

.wish-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(56, 161, 105, 0.15);
    color: var(--success);
    border-radius: 4px;
}
.wish-badge.tidak {
    background: rgba(229, 62, 62, 0.15);
    color: var(--danger);
}

.wish-text {
    font-size: 0.95rem;
}
