/**
 * Age Verification Banner
 * Dark Tech / Neon Green Design
 * Fully compliant - no external redirects
 */

/* ============================================
   OVERLAY - DOT GRID TEXTURE
   ============================================ */

.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    background-image: radial-gradient(rgba(0, 230, 118, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: visible;
}

.age-verification-overlay.age-verification-fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Prevent body scroll when modal is open */
body.age-verification-active {
    overflow: hidden;
}

/* ============================================
   MODAL CONTAINER - ANIMATED BORDER WRAPPER
   ============================================ */

.age-verification-modal {
    width: 100%;
    max-width: 520px;
    position: relative;
    animation: ageVerificationSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotating neon border effect */
.age-verification-modal::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 60deg,
        rgba(0, 230, 118, 0.8) 120deg,
        rgba(0, 230, 118, 0.2) 180deg,
        transparent 240deg,
        transparent 300deg,
        rgba(0, 230, 118, 0.5) 360deg
    );
    animation: borderSpin 4s linear infinite;
    z-index: -1;
    filter: blur(1px);
}

@keyframes borderSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

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

/* ============================================
   CONTENT BOX - DARK TECH STYLE
   ============================================ */

.age-verification-content {
    background: rgba(5, 10, 8, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 40px rgba(0, 230, 118, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: contentGlow 3s ease-in-out infinite;
}

@keyframes contentGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 230, 118, 0.08); }
    50%       { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 230, 118, 0.18); }
}

/* Subtle scanline texture overlay */
.age-verification-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    border-radius: 16px;
}

/* ============================================
   18+ BADGE
   ============================================ */

.age-verification-badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.08);
    border: 1.5px solid rgba(0, 230, 118, 0.5);
    border-radius: 5px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00E676;
    transform: rotate(-1.5deg);
    box-shadow: 2px 2px 0 rgba(0, 230, 118, 0.15);
}

/* ============================================
   LOGO
   ============================================ */

.age-verification-logo {
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 220px;
    height: auto;
}

.age-verification-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.3));
}

/* ============================================
   TITLE & TEXT
   ============================================ */

.age-verification-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.2);
}

.age-verification-text {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 0.5rem 0;
}

.age-verification-text-bold {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2.5rem 0;
    line-height: 1.5;
    display: block;
    width: 100%;
    clear: both;
}

.age-verification-text strong {
    color: #00E676;
    font-weight: 700;
}

/* ============================================
   BUTTONS
   ============================================ */

.age-verification-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.age-verify-btn {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 1.1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.5px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* PRIMARY BUTTON - NEON GREEN */
.age-verify-btn-primary {
    background: linear-gradient(135deg, #00C853, #00E676);
    color: #000000;
    box-shadow:
        0 0 20px rgba(0, 230, 118, 0.4),
        0 0 40px rgba(0, 230, 118, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 230, 118, 0.6);
}

.age-verify-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.45s ease;
}

.age-verify-btn-primary:hover {
    background: linear-gradient(135deg, #00E676, #69F0AE);
    box-shadow:
        0 0 30px rgba(0, 230, 118, 0.6),
        0 0 60px rgba(0, 230, 118, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(0, 230, 118, 0.9);
}

.age-verify-btn-primary:hover::before {
    left: 100%;
}

.age-verify-btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 0 15px rgba(0, 230, 118, 0.5),
        0 0 30px rgba(0, 230, 118, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

/* SECONDARY BUTTON - DARK GRAY */
.age-verify-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.95rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.age-verify-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

/* ============================================
   DISCLAIMER
   ============================================ */

.age-verification-disclaimer {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.age-verification-disclaimer a {
    color: rgba(0, 230, 118, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(0, 230, 118, 0.25);
}

.age-verification-disclaimer a:hover {
    color: #00E676;
    border-bottom-color: rgba(0, 230, 118, 0.55);
}

/* ============================================
   EXIT MESSAGE MODAL
   ============================================ */

.age-verification-exit-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: ageVerificationSlideIn 0.3s ease;
}

.age-verification-exit-content {
    background: rgba(5, 10, 8, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 230, 118, 0.05);
}

.age-verification-exit-text {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem 0;
}

.age-verification-exit-close {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.age-verification-exit-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .age-verification-overlay {
        padding: 1rem;
    }

    .age-verification-content {
        padding: 2.5rem 2rem;
        border-radius: 14px;
    }

    .age-verification-title {
        font-size: 1.75rem;
    }

    .age-verification-text {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
        clear: both;
    }

    .age-verification-text-bold {
        font-size: 1.15rem;
        margin-bottom: 2rem;
        display: block;
        width: 100%;
        clear: both;
    }

    .age-verify-btn {
        font-size: 0.95rem;
        padding: 1rem 1.75rem;
    }

    .age-verify-btn-primary {
        font-size: 1rem;
    }

    .age-verify-btn-secondary {
        font-size: 0.9rem;
        padding: 0.9rem 1.75rem;
    }

    .age-verification-logo {
        max-width: 180px;
        margin-bottom: 1.5rem;
    }

    .age-verification-logo-img {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .age-verification-content {
        padding: 2rem 1.5rem;
    }

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

    .age-verification-text {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
        clear: both;
    }

    .age-verification-text-bold {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
        display: block;
        width: 100%;
        clear: both;
    }

    .age-verification-buttons {
        gap: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .age-verify-btn {
        padding: 0.95rem 1.5rem;
    }

    .age-verification-exit-content {
        padding: 1.5rem;
    }
}
