/* =============================================
   First Visit Popup & Terms Agreement - Styles
   Premium Design - Age Restriction Popup
   ============================================= */

/* ---------- Overlay ---------- */
.fvpt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(20, 0, 30, 0.88) 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.fvpt-overlay.fvpt-active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Popup Container ---------- */
.fvpt-popup {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 520px;
    width: 92%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.fvpt-overlay.fvpt-active .fvpt-popup {
    transform: scale(1) translateY(0);
}

/* ---------- Top Accent Bar ---------- */
.fvpt-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b35, #f7c948, #ff6b35);
    background-size: 200% 100%;
    animation: fvpt-shimmer 3s ease-in-out infinite;
    z-index: 1;
}

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

/* ---------- Popup Header ---------- */
.fvpt-popup-header {
    padding: 32px 28px 0;
    text-align: center;
}

.fvpt-popup-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* ---------- Popup Body ---------- */
.fvpt-popup-body {
    padding: 20px 28px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* ===== Age Warning Content ===== */
.fvpt-age-warning {
    text-align: center;
}

/* Warning Icon */
.fvpt-age-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 4px;
    animation: fvpt-pulse 2s ease-in-out infinite;
}

@keyframes fvpt-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
}

/* Title */
.fvpt-age-warning h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

/* Intro Text */
.fvpt-intro {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 16px !important;
    padding: 0;
}

/* "You certify that:" */
.fvpt-certify {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px !important;
    padding: 0;
}

/* Checklist */
.fvpt-checklist {
    list-style: none;
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-align: left;
}

.fvpt-checklist li {
    position: relative;
    padding: 8px 0 8px 32px !important;
    margin-bottom: 4px !important;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
    font-weight: 500;
}

.fvpt-checklist li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 18px;
    height: 18px;
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 50%;
}

.fvpt-checklist li::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 16px;
    width: 7px;
    height: 4px;
    border-left: 2.5px solid #f59e0b;
    border-bottom: 2.5px solid #f59e0b;
    transform: rotate(-45deg);
}

/* Disclaimer Box */
.fvpt-disclaimer {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 0;
}

.fvpt-disclaimer p {
    margin: 0 !important;
    font-size: 0.9rem;
    font-weight: 600;
    color: #991b1b;
    line-height: 1.5;
}

/* ---------- Popup Footer / Buttons ---------- */
.fvpt-popup-footer {
    padding: 8px 28px 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Base Button */
.fvpt-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.fvpt-btn:active {
    transform: scale(0.96);
}

.fvpt-btn:focus-visible {
    outline: 3px solid #6b7280;
    outline-offset: 3px;
}

/* ---------- Accept Button (Green) ---------- */
.fvpt-btn-accept {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.fvpt-btn-accept:hover,
.fvpt-btn-accept:focus {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

.fvpt-btn-accept::before {
    content: '✓  ';
    font-weight: 900;
}

/* ---------- Exit Button (Red) ---------- */
.fvpt-btn-exit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.fvpt-btn-exit:hover,
.fvpt-btn-exit:focus {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* ---------- Scrollbar Styling ---------- */
.fvpt-popup-body::-webkit-scrollbar {
    width: 5px;
}

.fvpt-popup-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.fvpt-popup-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.fvpt-popup-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* =============================================
   MOBILE RESPONSIVE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
    .fvpt-popup {
        width: 94%;
        max-height: 92vh;
        border-radius: 16px;
    }

    .fvpt-popup-header {
        padding: 24px 16px 0;
    }

    .fvpt-popup-header h2 {
        font-size: 1.15rem;
    }

    .fvpt-popup-body {
        padding: 14px 16px 10px;
    }

    .fvpt-age-icon {
        font-size: 2.6rem;
    }

    .fvpt-age-warning h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .fvpt-intro {
        font-size: 0.9rem;
    }

    .fvpt-certify {
        font-size: 0.88rem;
    }

    .fvpt-checklist li {
        font-size: 0.85rem;
        padding: 6px 0 6px 30px !important;
    }

    .fvpt-checklist li::before {
        top: 8px;
        width: 16px;
        height: 16px;
    }

    .fvpt-checklist li::after {
        top: 14px;
        left: 9px;
        width: 6px;
        height: 3px;
    }

    .fvpt-disclaimer {
        padding: 12px 14px;
    }

    .fvpt-disclaimer p {
        font-size: 0.85rem;
    }

    .fvpt-popup-footer {
        padding: 4px 16px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .fvpt-btn {
        width: 100%;
        min-width: 0;
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* =============================================
   TABLET (481px - 768px)
   ============================================= */
@media (min-width: 481px) and (max-width: 768px) {
    .fvpt-popup {
        width: 88%;
        max-height: 90vh;
    }

    .fvpt-popup-header h2 {
        font-size: 1.25rem;
    }

    .fvpt-age-warning h3 {
        font-size: 1.35rem;
    }

    .fvpt-popup-body {
        padding: 18px 24px 14px;
    }

    .fvpt-btn {
        min-width: 130px;
        padding: 13px 22px;
    }
}

/* =============================================
   DESKTOP LARGE (≥ 1200px)
   ============================================= */
@media (min-width: 1200px) {
    .fvpt-popup {
        max-width: 560px;
    }
}

/* =============================================
   REDUCED MOTION PREFERENCE
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .fvpt-overlay,
    .fvpt-popup,
    .fvpt-btn {
        transition: none;
    }

    .fvpt-age-icon {
        animation: none;
    }

    .fvpt-popup::before {
        animation: none;
    }
}
