/**
 * Ascentides Age Gate
 * Sky-themed verification portal - Light theme
 */

#age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Light sky gradient */
    background: linear-gradient(180deg,
            var(--sky-100) 0%,
            var(--sky-200) 30%,
            var(--sky-50) 60%,
            var(--bg-primary) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#age-gate-overlay.active {
    opacity: 1;
}

#age-gate-overlay.closing {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Animated clouds background */
.age-gate-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background:
        radial-gradient(ellipse 150px 100px at 10% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 200px 120px at 30% 40%, rgba(255, 255, 255, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 180px 110px at 60% 30%, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 220px 130px at 85% 50%, rgba(255, 255, 255, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 250px 140px at 20% 70%, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 200px 100px at 70% 80%, rgba(255, 255, 255, 0.85) 0%, transparent 70%);
    animation: cloudsDrift 100s linear infinite;
    pointer-events: none;
}

@keyframes cloudsDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Soft glow */
.age-gate-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse 50% 50% at center,
            rgba(59, 130, 246, 0.15) 0%,
            transparent 70%);
    pointer-events: none;
}

/* Modal - Light glassmorphism */
.age-gate-modal {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--sky-200);
    border-radius: 24px;
    padding: 3rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    animation: modalAppear 0.6s ease 0.3s forwards;
}

@keyframes modalAppear {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.age-gate-content {
    position: relative;
}

/* Icon */
.age-gate-icon {
    margin-bottom: 1.5rem;
}

.age-gate-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(14, 165, 233, 0.3));
}

/* Typography */
.age-gate-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #1e293b;
}

.age-gate-text {
    font-size: 1rem;
    color: #475569;
    margin: 0 0 0.5rem 0;
}

.age-gate-subtext {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 2rem 0;
}

/* Buttons */
.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.age-gate-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.age-gate-btn-primary {
    background: linear-gradient(135deg, var(--sky-500) 0%, var(--sky-400) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.age-gate-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

.age-gate-btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.age-gate-btn-secondary:hover {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

/* Mobile */
@media (max-width: 480px) {
    .age-gate-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .age-gate-title {
        font-size: 1.5rem;
    }

    .age-gate-icon img {
        width: 48px;
        height: 48px;
    }
}