/**
 * Svapaland Age Gate - Frontend Styles
 */

/* Overlay */
.svapaland-age-gate-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2147483647 !important; /* Maximum z-index value */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Ensure overlay is never affected by parent filters */
    filter: none !important;
    -webkit-filter: none !important;
    transform: none;
    isolation: isolate;
}

.svapaland-age-gate-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Body state when popup is active */
body.svapaland-age-gate-active {
    overflow: hidden;
}

/* Hide other popups/banners while age gate is active */
.svapaland-age-gate-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Modal */
.svapaland-age-gate-modal {
    position: relative;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Ensure modal is never hidden by inherited styles */
    filter: none !important;
    -webkit-filter: none !important;
    visibility: inherit;
}

.svapaland-age-gate-overlay.active .svapaland-age-gate-modal {
    opacity: 1;
    transform: translateY(0);
}

/* Animation: Scale */
.svapaland-age-gate-overlay.animation-scale .svapaland-age-gate-modal {
    transform: scale(0.8);
}

.svapaland-age-gate-overlay.animation-scale.active .svapaland-age-gate-modal {
    transform: scale(1);
}

/* Animation: Slide */
.svapaland-age-gate-overlay.animation-slide .svapaland-age-gate-modal {
    transform: translateY(-100px);
}

.svapaland-age-gate-overlay.animation-slide.active .svapaland-age-gate-modal {
    transform: translateY(0);
}

/* Animation: None */
.svapaland-age-gate-overlay.animation-none .svapaland-age-gate-modal {
    transform: none;
    transition: none;
}

/* Logo */
.svapaland-age-gate-logo {
    text-align: center;
}

.svapaland-age-gate-logo img {
    height: auto;
    display: inline-block;
}

/* Title */
.svapaland-age-gate-title {
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.2;
}

/* Message */
.svapaland-age-gate-message {
    margin: 0 0 30px 0;
    padding: 0;
    opacity: 0.9;
}

/* Buttons Container */
.svapaland-age-gate-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Base */
.svapaland-age-gate-btn {
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.svapaland-age-gate-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .svapaland-age-gate-modal {
        padding: 25px !important;
    }
    
    .svapaland-age-gate-title {
        font-size: 22px !important;
    }
    
    .svapaland-age-gate-message {
        font-size: 13px !important;
    }
    
    .svapaland-age-gate-buttons {
        flex-direction: column !important;
    }
    
    .svapaland-age-gate-btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .svapaland-age-gate-btn:last-child {
        margin-bottom: 0;
    }
}
