/*
    WP Custom Age Gate - Public CSS
*/

/* Lock body scroll */
body.wcag-no-scroll {
    overflow: hidden !important;
}

/* Background overlay */
.wcag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    /* Dark overlay */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
    /* Modern blur effect */
}

.wcag-overlay.wcag-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal Box */
.wcag-modal {
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: wcag-popin 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0.9);
}

@keyframes wcag-popin {
    to {
        transform: scale(1);
    }
}

.wcag-logo-wrapper {
    margin-bottom: 25px;
}

.wcag-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wcag-modal h2 {
    font-size: 1.8rem;
    margin: 0 0 15px;
    line-height: 1.2;
    font-weight: 700;
}

.wcag-message {
    font-size: 1.1rem;
    margin: 0 0 30px;
    line-height: 1.5;
    opacity: 0.9;
}

.wcag-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 480px) {
    .wcag-actions {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

.wcag-btn {
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
}

@media (min-width: 480px) {
    .wcag-btn {
        width: auto;
        min-width: 140px;
    }
}

.wcag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.wcag-btn:active {
    transform: translateY(0);
}