/* public/css/couple-info.css */

.couple-info-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ubah center menjadi flex-end */
    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);
    /* Sedikit zoom agar tidak ada celah */
}

/* Set background berbeda untuk tiap halaman */
.groom-page .couple-bg-image {
    background-image: url('/images/SLM08846.JPG');
    /* Sesuaikan path gambar Anda */
}

.bride-page .couple-bg-image {
    background-image: url('/images/SLM08509.JPG');
    /* Sesuaikan path gambar Anda */
}

.couple-overlay {
    position: absolute;
    inset: 0;
    /* Menggunakan gradient agar foto di atas tetap bersih, tapi teks di bawah kontras */
    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%;
    /* Berikan padding bawah agar tidak menempel ke bar navigasi HP */
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.section-title {
    font-size: 11px;
    letter-spacing: 0.6em;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 400;
}

.name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 8vw, 54px);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.parents {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.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: background 0.3s;
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- OVERRIDE GLOBAL UNTUK MOBILE --- */
@media (max-width: 1023px) {

    .couple-info-section {
        /* Paksa tinggi mengikuti viewport HP */
        height: 100dvh !important;
        width: 100% !important;
        position: relative;
        display: block;
        /* Ganti ke block untuk memudahkan posisi absolut anak */
        overflow: hidden;
    }

    .couple-bg-image {
        height: 100% !important;
        width: 100% !important;
        position: absolute;
        inset: 0;
        transform: scale(1.1);
        /* Zoom sedikit agar coverage penuh */
        background-size: cover !important;
        background-position: center center !important;
        z-index: 1;
    }

    /* Gradient overlay agar teks bawah tetap terbaca jelas */
    .couple-overlay {
        position: absolute;
        inset: 0;
        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%);
        z-index: 2;
    }

    /* --- KUNCI KONTEN DI BAWAH --- */
    .couple-content-wrapper {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        z-index: 10;
        /* Padding bawah disesuaikan agar pas di atas bar navigasi HP */
        padding: 0 20px calc(50px + env(safe-area-inset-bottom)) 20px !important;
    }

    .section-title {
        font-size: 10px;
        letter-spacing: 0.5em;
        margin-bottom: 5px;
    }

    .name {
        font-size: clamp(38px, 10vw, 48px);
        /* Ukuran nama lebih menonjol */
        margin-bottom: 20px;
    }

    .instagram-link {
        padding: 8px 20px;
        font-size: 12px;
        background: rgba(0, 0, 0, 0.2);
        /* Sedikit gelap agar kontras */
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Memastikan library TAOS tidak mengganggu posisi */
    .taos\:translate-y-\[100px\] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Khusus untuk HP dengan layar sangat pendek/landscape */
@media (max-height: 600px) and (orientation: portrait) {
    .couple-content-wrapper {
        padding-bottom: calc(30px + env(safe-area-inset-bottom)) !important;
    }

    .name {
        font-size: 32px;
    }
}