/* ========================================
   AGE GATE - 18+ Verification Overlay
======================================== */

/* Hide page content until age is verified */
body.age-gate-pending > *:not(.age-gate-overlay) {
    visibility: hidden !important;
}

body.age-gate-pending {
    overflow: hidden;
}

/* Age Gate Overlay */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible !important;
}

/* Subtle pattern overlay */
.age-gate-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(187, 0, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(44, 110, 127, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Modal Container */
.age-gate-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    animation: ageGateSlideIn 0.4s ease-out;
}

@keyframes ageGateSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo in modal */
.age-gate-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

/* Title */
.age-gate-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c6e7f;
    margin: 0 0 10px 0;
}

/* Warning icon/badge */
.age-gate-badge {
    display: inline-block;
    background: #bb0000;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(187, 0, 0, 0.3);
}

/* Description text */
.age-gate-text {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    color: #555;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.age-gate-warning {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.9rem;
    color: #777;
    margin: 0 0 30px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #bb0000;
}

/* Button container */
.age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.age-gate-btn {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.age-gate-btn-confirm {
    background: #2c6e7f;
    color: white;
}

.age-gate-btn-confirm:hover {
    background: #1f4b57;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 110, 127, 0.3);
}

.age-gate-btn-exit {
    background: #f5f5f5;
    color: #555;
    border: 2px solid #ddd;
}

.age-gate-btn-exit:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* Focus states for accessibility */
.age-gate-btn:focus {
    outline: 3px solid #2c6e7f;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .age-gate-modal {
        padding: 30px 20px;
        margin: 20px;
    }

    .age-gate-title {
        font-size: 1.5rem;
    }

    .age-gate-badge {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.3rem;
    }

    .age-gate-buttons {
        flex-direction: column;
    }

    .age-gate-btn {
        width: 100%;
    }
}
