/**
 * Age Verification Gate Styles — webpowers UG
 */

.wp-age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wp-age-fadein 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wp-age-gate-overlay--hiding {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-age-gate-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: wp-age-scalein 0.3s ease;
}

.wp-age-gate-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.wp-age-gate-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.wp-age-gate-text {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.wp-age-gate-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.wp-age-gate-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.wp-age-gate-btn:hover {
    opacity: 0.9;
}

.wp-age-gate-btn:active {
    transform: scale(0.97);
}

.wp-age-gate-btn--confirm {
    background: #1a1a1a;
    color: #fff;
}

.wp-age-gate-btn--deny {
    background: #f1f1f1;
    color: #666;
    display: inline-block;
    text-decoration: none;
}

.wp-age-gate-form {
    margin: 0;
}

.wp-age-gate-exit {
    margin: 16px 0 0;
}

.wp-age-gate-birthday {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.wp-age-gate-birthday label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wp-age-gate-input {
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    width: 200px;
    transition: border-color 0.2s ease;
}

.wp-age-gate-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.wp-age-gate-error {
    color: #e63946;
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0 0;
}

@keyframes wp-age-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wp-age-scalein {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .wp-age-gate-overlay,
    .wp-age-gate-modal {
        animation: none;
    }

    .wp-age-gate-overlay--hiding {
        transition: none;
    }

    .wp-age-gate-btn,
    .wp-age-gate-input {
        transition: none;
    }
}

@media (max-width: 480px) {
    .wp-age-gate-modal {
        padding: 28px 20px;
    }

    .wp-age-gate-title {
        font-size: 18px;
    }

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

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