/* public/css/gift.css */

.wedding-gift-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Paksa tetap 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Kurangi padding atas/bawah agar konten tidak terdorong keluar */
    padding: 20px;
    margin: 0;
}

/* Background Image Full Content */
.gift-bg-image {
    position: absolute;
    inset: 0;
    background: url('/images/SLM08723.JPG') no-repeat center;
    background-size: cover;
    z-index: 1;
    transform: scale(1.1);
}

.gift-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    /* Overlay gelap agar teks putih kontras */
    z-index: 2;
}

.gift-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    /* Perkecil sedikit lebar maksimal */
    text-align: center;
    color: white;
    /* Tambahkan auto overflow jika layar sangat kecil (misal iPhone SE) */
    max-height: 95vh;
    overflow-y: auto;
}

/* Styling Gambar Kecil */
.gift-image-wrapper {
    margin-bottom: 15px;
}

.gift-small-image {
    width: 90px;
    /* Perkecil dari 120px */
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 12px;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    /* Kurangi dari 20px */
}

.gift-desc {
    font-size: 12px;
    /* Perkecil font sedikit */
    line-height: 1.4;
    margin-bottom: 20px;
    /* Kurangi drastis dari 40px */
    padding: 0 5%;
}

/* Bank Card Styling */
.gift-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Kurangi jarak antar kartu dari 20px */
}

.bank-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 15px;
    /* Kurangi dari 25px */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bank-name {
    font-size: 10px;
    margin-bottom: 5px;
}

.account-number {
    font-size: 18px;
    /* Perkecil sedikit dari 20px */
    margin-bottom: 2px;
}

.account-holder {
    font-size: 12px;
    margin-bottom: 12px;
    /* Kurangi dari 20px */
}

.copy-btn {
    background: white;
    color: #333;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background-color: #27ae60 !important;
    /* Warna hijau */
    border-color: #27ae60 !important;
    color: white;
}

.gift-content::-webkit-scrollbar {
    display: none;
}

/* --- OVERRIDE GLOBAL UNTUK MOBILE --- */
@media (max-width: 1023px) {

    .wedding-gift-section {
        height: 100dvh !important;
        width: 100% !important;
        padding: 20px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .gift-bg-image {
        height: 100% !important;
        width: 100% !important;
        position: absolute;
        inset: 0;
        transform: scale(1.1);
        background-size: cover !important;
        background-position: center center !important;
        z-index: 1;
    }

    .gift-content {
        height: auto;
        max-height: 95dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
        z-index: 10;
        /* Jika layar sangat pendek, konten bank bisa di-scroll secara internal */
        overflow-y: auto;
        scrollbar-width: none;
    }

    .gift-content::-webkit-scrollbar {
        display: none;
    }

    /* Penyesuaian Elemen Visual */
    .gift-image-wrapper {
        margin-bottom: 12px;
    }

    .gift-small-image {
        width: 75px;
        /* Sedikit diperkecil agar kartu bank bisa naik */
        height: 75px;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
    }

    .section-title {
        font-size: 10px;
        letter-spacing: 0.3em;
        margin-bottom: 8px;
    }

    .gift-desc {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 15px;
        padding: 0 10px;
        opacity: 0.85;
    }

    /* Bank Card Optimization */
    .gift-container {
        gap: 10px;
        /* Jarak antar kartu bank dipersempit */
    }

    .bank-card {
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .bank-name {
        font-size: 9px;
        margin-bottom: 4px;
        opacity: 0.7;
    }

    .account-number {
        font-size: 16px;
        /* Ukuran angka dioptimalkan */
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .account-holder {
        font-size: 11px;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .copy-btn {
        padding: 6px 20px;
        font-size: 8px;
        letter-spacing: 1px;
        font-weight: 600;
    }
}

/* Penyesuaian khusus layar iPhone SE atau HP layar kecil lainnya */
@media (max-height: 670px) and (orientation: portrait) {
    .gift-small-image {
        width: 60px;
        height: 60px;
    }

    .gift-desc {
        display: none;
        /* Hilangkan deskripsi jika layar benar-benar sempit agar kartu bank tetap terlihat */
    }

    .gift-container {
        gap: 8px;
    }

    .bank-card {
        padding: 10px;
    }
}