/* ============================================
   AGE GATE - VERIFICAÇÃO DE IDADE
   Tema: Cyberpunk / Neon
   ============================================ */

/* Overlay fullscreen */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #0f0021 0%, #1a0033 50%, #2d0052 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.5s ease-in-out;
    overflow-y: auto; /* Permitir scroll se necessário */
}

/* Partículas de fundo (opcional) */
.age-gate-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(192, 132, 252, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(232, 121, 249, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(34, 211, 238, 0.2), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Modal principal */
.age-gate-modal {
    background: linear-gradient(135deg, rgba(25, 10, 45, 0.95), rgba(45, 0, 82, 0.95));
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 550px;
    width: 100%;
    max-height: 90vh; /* Não ocupar 100% da altura */
    position: relative;
    overflow: visible; /* Permitir que calendário apareça fora */
    margin: auto; /* Centralizar com possibilidade de scroll */
    box-shadow:
        0 0 60px rgba(168, 85, 247, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(168, 85, 247, 0.05);
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Glow animado atrás do modal */
.age-gate-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Header */
.age-gate-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 0, 80, 0.6));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.age-gate-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #a855f7, #e879f9, #ff0050);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 0.5rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.age-gate-subtitle {
    color: rgba(192, 132, 252, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* Body */
.age-gate-body {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.age-gate-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form */
.age-gate-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: rgba(192, 132, 252, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input[type="date"] {
    padding: 1rem;
    background: rgba(15, 0, 33, 0.8);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    background: rgba(15, 0, 33, 1);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) hue-rotate(180deg);
    cursor: pointer;
}

/* Botão de submit */
.age-gate-btn {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.age-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, #c084fc, #e879f9);
}

.age-gate-btn:active {
    transform: translateY(0);
}

/* Mensagem de erro */
.age-gate-error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    color: #fca5a5;
    text-align: center;
    font-weight: 600;
    animation: errorShake 0.5s;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Privacy notice */
.age-gate-privacy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

/* Footer */
.age-gate-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
    z-index: 1;
}

.age-gate-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.age-gate-footer a {
    color: #22d3ee;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.age-gate-footer a:hover {
    border-bottom-color: #22d3ee;
}

/* Responsive */
@media (max-width: 768px) {
    .age-gate-modal {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .age-gate-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .age-gate-icon {
        font-size: 3rem;
    }

    .age-gate-description {
        font-size: 0.9rem;
    }

    .age-gate-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .age-gate-modal {
        padding: 1.5rem 1rem;
    }

    .age-gate-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .age-gate-description {
        font-size: 0.85rem;
    }

    .form-group input[type="date"] {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .age-gate-overlay,
    .age-gate-modal,
    .age-gate-icon,
    .age-gate-glow,
    .age-gate-title {
        animation: none !important;
    }
}
