/* public/css/couple-info.css */

.couple-info-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    color: white;
}

.couple-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
}

.groom-page .couple-bg-image {
    background-image: url('/images/SLM08846.JPG');
}

.bride-page .couple-bg-image {
    background-image: url('/images/SLM08509.JPG');
}

.couple-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.couple-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.section-title {
    font-size: 14px;
    letter-spacing: 0.6em;
    padding-top: 20px;
    opacity: 0.9;
    font-weight: 400;
}

.name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    letter-spacing: 0.25em;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* PERBAIKAN: Jarak Deskripsi (Orang Tua) */
.description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Dancing Script', cursive;
    font-weight: 300;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- OVERRIDE GLOBAL UNTUK MOBILE --- */
@media (max-width: 1023px) {

    html,
    body {
        height: 100dvh !important;
        overflow: hidden;
    }

    .couple-info-section {
        height: 100dvh !important;
        display: block;
    }

    .couple-overlay {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.2) 40%,
                rgba(0, 0, 0, 0.8) 100%);
    }

    .couple-content-wrapper {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 25px calc(50px + env(safe-area-inset-bottom)) 25px !important;
    }

    .name {
        font-size: 20px;
        margin-bottom: 10px;
    }

    /* Penyesuaian Deskripsi di Mobile */
    .description {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .instagram-link {
        padding: 10px 22px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

/* Khusus HP pendek agar tidak menumpuk */
@media (max-height: 660px) {
    .description {
        margin-bottom: 15px;
        font-size: 12px;
    }

    .name {
        margin-bottom: 5px;
    }

    .couple-content-wrapper {
        padding-bottom: 30px !important;
    }
}