/* ========================================
   Undangan Digital - Tema Adat Sunda
   Color Palette: Brown/Coklat
======================================== */

/* CSS Variables */
:root {
    --primary-brown: #8B4513;
    --dark-brown: #5D3A1A;
    --light-brown: #D4A574;
    --cream: #FDF5E6;
    --cream-dark: #F5E6D3;
    --gold: #B8860B;
    --gold-dark: #996515;
    --white: #FFFFFF;
    --text-dark: #3E2723;
    --text-light: #5D4037;
    --shadow: rgba(139, 69, 19, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Main Container */
.main-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--cream);
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
}

/* Page Sections */
.page-section {
    display: none;
    min-height: calc(100vh - 70px);
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Corner Ornaments - Using Images */
.ornament-corner {
    position: absolute;
    width: 130px;
    height: 130px;
    z-index: 1;
    pointer-events: none;
}

.ornament-tl {
    top: 0;
    left: 0;
}

.ornament-tr {
    top: 0;
    right: 0;
}

.ornament-bl {
    bottom: 0;
    left: 0;
}

.ornament-br {
    bottom: 0;
    right: 0;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 15px 30px;
    min-height: calc(100vh - 110px);
}

/* ========================================
   Section 1: Opening
======================================== */
.wedding-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.gunungan-container {
    width: 160px;
    height: 200px;
    margin: 10px auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gunungan-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px var(--shadow));
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--gold);
    margin: 15px 1 10px;
    text-shadow: 1px 1px 2px var(--shadow);
}

.wedding-date {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 50px;
    letter-spacing: 3px;
}

.invitation-to {
    margin-top: auto;
    padding: 10px;
}

.invitation-to p {
    margin: 3px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.guest-name {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--gold) !important;
    margin-top: 8px !important;
}

/* ========================================
   Section 2: Mempelai
======================================== */
.section-title-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.quote-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--gold);
    border-radius: 15px;
    padding: 20px 15px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 340px;
}

.quran-verse {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 10px;
}

.quran-source {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-style: italic;
}

.mempelai-section {
    width: 100%;
    max-width: 340px;
}

.mempelai-card-simple {
    padding: 20px 15px;
    text-align: center;
}

.mempelai-label-small {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.mempelai-name-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold);
    margin: 5px 0 10px;
}

.parent-names-simple {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.ampersand-circle {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    margin: 5px 0;
}

/* ========================================
   Section 3: Acara
======================================== */
.acara-block {
    padding: 25px 15px;
    text-align: center;
    border-bottom: 1px dashed var(--light-brown);
    width: 100%;
    max-width: 340px;
}

.acara-block:last-of-type {
    border-bottom: none;
}

.acara-title-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.acara-date-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.acara-time-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 8px;
}

.acara-location-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.acara-address-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
}

.countdown-item {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-brown) 100%);
    border-radius: 10px;
    padding: 12px 10px;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
}

.countdown-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    color: var(--white);
    margin-top: 4px;
}

.btn-action {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px 5px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-brown) 100%);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow);
    color: var(--white);
}

.btn-action i {
    margin-right: 5px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin-top: 10px;
}

.action-buttons .btn-action {
    width: 100%;
    text-align: center;
}

/* ========================================
   Section 4: RSVP
======================================== */
.doa-text-block {
    padding: 25px 20px;
    text-align: center;
    width: 100%;
    max-width: 340px;
}

.doa-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
}

.doa-source {
    font-size: 0.9rem;
    color: var(--primary-brown);
    font-weight: 500;
}

.rsvp-instruction {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 20px 0;
    padding: 0 15px;
    text-align: center;
}

.rsvp-deadline {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 25px;
    text-align: center;
}

.rsvp-deadline strong {
    color: var(--primary-brown);
}

/* RSVP Modal */
.rsvp-modal-content {
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 20px;
}

.rsvp-modal-content .modal-header {
    border-bottom: 1px solid var(--light-brown);
}

.rsvp-modal-content .modal-title {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--gold);
}

.rsvp-modal-content .form-control,
.rsvp-modal-content .form-select {
    border: 1px solid var(--light-brown);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
    background-color: var(--white);
}

.rsvp-modal-content .form-control:focus,
.rsvp-modal-content .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

/* ========================================
   Section 5: Gift
======================================== */
.gift-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 15px;
    margin-bottom: 20px;
    text-align: center;
}

.gift-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gift-tab {
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

.gift-tab.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-brown) 100%);
    color: var(--white);
}

.gift-content {
    display: none;
    width: 100%;
    max-width: 340px;
}

.gift-content.active {
    display: block;
}

.bank-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: transparent;
    border: none;
    border-bottom: 1px dashed var(--light-brown);
    border-radius: 0;
    padding: 20px 0;
    margin: 0;
    gap: 15px;
    text-align: left;
}

.bank-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bank-card:first-child {
    padding-top: 0;
}

.bank-logo-box {
    width: 60px;
    height: 60px;
    background: var(--cream-dark);
    border: 1px solid var(--light-brown);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bank-logo-box i {
    font-size: 1.5rem;
    color: var(--light-brown);
}

.bank-logo-box span {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--primary-brown);
    text-align: center;
}

.bank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.account-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 1px;
}

.btn-copy-small {
    display: inline-block;
    padding: 8px 20px;
    margin: 3px 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-brown) 100%);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-small:hover {
    transform: translateY(-1px);
}

.btn-copy-small.copied {
    background: #28a745;
}

.account-name {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.address-card {
    background: var(--white);
    border: 1px solid var(--light-brown);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
}

.address-card h4 {
    color: var(--primary-brown);
    margin-bottom: 15px;
    font-size: 1rem;
}

.address-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.recipient-name {
    font-weight: 600;
    color: var(--primary-brown) !important;
    margin: 15px 0;
}

/* ========================================
   Bottom Navigation
======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 55px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.nav-item span {
    font-size: 0.6rem;
    font-weight: 500;
}

.nav-item.active {
    background: var(--gold);
    color: var(--white);
}

.nav-item:hover {
    color: var(--white);
}

/* ========================================
   Responsive Design
======================================== */
@media screen and (max-width: 375px) {
    .ornament-corner {
        width: 100px;
        height: 100px;
    }

    .couple-names {
        font-size: 2.6rem;
    }

    .gunungan-container {
        width: 130px;
        height: 170px;
    }

    .countdown-item {
        min-width: 55px;
        padding: 10px 8px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .gift-tabs {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 280px;
    }

    .gift-tab {
        width: 100%;
    }
}

@media screen and (min-width: 481px) {
    .main-container {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-brown);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    opacity: 1;
}

/* ========================================
   Music Toggle Button
======================================== */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-brown) 100%);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px var(--shadow);
    }

    50% {
        box-shadow: 0 4px 25px var(--gold);
    }
}

/* ========================================
   Guest List Styles
======================================== */
.guest-list-container {
    border-top: 1px solid var(--light-brown);
    padding-top: 15px;
}

.guest-list-title {
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.guest-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.guest-list::-webkit-scrollbar {
    width: 5px;
}

.guest-list::-webkit-scrollbar-track {
    background: var(--cream-dark);
    border-radius: 5px;
}

.guest-list::-webkit-scrollbar-thumb {
    background: var(--light-brown);
    border-radius: 5px;
}

.guest-item {
    background: var(--white);
    border: 1px solid var(--light-brown);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    text-align: left;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guest-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.guest-item-date {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.guest-item-name {
    font-weight: 600;
    color: var(--primary-brown);
    font-size: 0.9rem;
}

.guest-item-status {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.guest-item-status.hadir {
    background: #d4edda;
    color: #155724;
}

.guest-item-status.tidak_hadir {
    background: #f8d7da;
    color: #721c24;
}

.guest-item-status.belum_pasti {
    background: #fff3cd;
    color: #856404;
}

.guest-item-message {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 5px;
    line-height: 1.4;
}

.no-guest-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ========================================
   Enhanced Page Animations
======================================== */
.page-section.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animate content elements */
.page-section.active .content-wrapper>* {
    animation: fadeInElement 0.5s ease-out forwards;
    opacity: 0;
}

.page-section.active .content-wrapper>*:nth-child(1) {
    animation-delay: 0.1s;
}

.page-section.active .content-wrapper>*:nth-child(2) {
    animation-delay: 0.2s;
}

.page-section.active .content-wrapper>*:nth-child(3) {
    animation-delay: 0.3s;
}

.page-section.active .content-wrapper>*:nth-child(4) {
    animation-delay: 0.4s;
}

.page-section.active .content-wrapper>*:nth-child(5) {
    animation-delay: 0.5s;
}

.page-section.active .content-wrapper>*:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInElement {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}