/* Age Verification Modal Styles */

/* Backdrop */
.age-verify-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

/* Modal Container */
.age-verify-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 3px solid #FF6B35;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
    z-index: 10001;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Header */
.age-verify-header {
    background: linear-gradient(135deg, #FF6B35, #F25C54);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.age-verify-header .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.age-verify-header .verify-icon {
    font-size: 1.5rem;
}

.age-verify-header .verify-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-verify-header .verify-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Intro Section */
.age-verify-intro {
    padding: 30px;
    text-align: center;
    color: #E0E0E0;
}

.age-verify-intro h2 {
    color: #FF6B35;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.age-verify-intro p {
    margin: 15px 0;
    line-height: 1.6;
}

.age-verify-intro strong {
    color: #FFD700;
}

.verify-warning {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid #FF6B35;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}

/* Buttons */
.start-verify-btn, .cancel-verify-btn {
    padding: 12px 30px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-verify-btn {
    background: linear-gradient(135deg, #FF6B35, #F25C54);
    color: white;
}

.start-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.cancel-verify-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-verify-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Quiz Section */
.age-verify-quiz {
    padding: 20px 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.quiz-progress {
    margin-bottom: 25px;
}

.progress-text {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FFD700);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.question-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 107, 53, 0.1);
    border-left: 4px solid #FF6B35;
    border-radius: 8px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.3);
    color: #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-btn:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    transform: translateX(5px);
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-btn.correct {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10B981;
    color: #10B981;
    animation: correctPulse 0.5s ease;
}

.answer-btn.incorrect {
    background: rgba(239, 68, 68, 0.3);
    border-color: #EF4444;
    color: #EF4444;
    animation: shake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.answer-explanation {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #FFD700;
    font-style: italic;
    animation: fadeIn 0.5s ease;
}

/* Results Section */
.age-verify-results {
    padding: 30px;
    text-align: center;
}

.results-success, .results-fail {
    animation: fadeIn 0.5s ease;
}

.results-success h2 {
    color: #10B981;
    font-size: 2rem;
    margin-bottom: 20px;
}

.results-fail h2 {
    color: #EF4444;
    font-size: 2rem;
    margin-bottom: 20px;
}

.score-display {
    font-size: 1.5rem;
    color: #FFD700;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.score-display strong {
    font-size: 2rem;
}

.success-message, .fail-message {
    color: #E0E0E0;
    margin: 20px 0;
    line-height: 1.6;
}

.fail-list {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    color: #999;
    line-height: 1.8;
}

.fail-list li {
    margin: 10px 0;
}

.continue-btn, .retry-btn, .close-btn {
    padding: 15px 40px;
    margin: 10px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.retry-btn {
    background: linear-gradient(135deg, #FF6B35, #F25C54);
    color: white;
}

.retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Two button layout for adult section choices */
.adult-section-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.adult-section-buttons .continue-btn {
    flex: 1;
    min-width: 200px;
}

.adult-section-buttons .chill-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.adult-section-buttons .chill-btn:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Unlock Notification */
.unlock-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 10002;
    transition: right 0.5s ease;
}

.unlock-notification.show {
    right: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-text {
    font-weight: bold;
}

/* Persistent Notification with Links */
.persistent-notification .notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.persistent-notification .notification-title {
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
    margin-left: 10px;
}

.persistent-notification .notification-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.persistent-notification .notification-close:hover {
    opacity: 1;
}

.persistent-notification .notification-content {
    display: block;
}

.persistent-notification .notification-text {
    margin: 0 0 15px 0;
    color: #FFD700;
    font-style: italic;
}

.persistent-notification .notification-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.persistent-notification .notification-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.persistent-notification .adult-link {
    background: linear-gradient(135deg, #FF0000, #FFD700);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.persistent-notification .adult-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    border-color: #FFD700;
}

.persistent-notification .chill-link {
    background: linear-gradient(135deg, #2d3561, #4a5f9e);
    box-shadow: 0 4px 15px rgba(45, 53, 97, 0.3);
}

.persistent-notification .chill-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 95, 158, 0.5);
    border-color: #4a5f9e;
}

/* Scrollbar Styling */
.age-verify-quiz::-webkit-scrollbar {
    width: 8px;
}

.age-verify-quiz::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.age-verify-quiz::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 4px;
}

.age-verify-quiz::-webkit-scrollbar-thumb:hover {
    background: #F25C54;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .age-verify-modal {
        width: 95%;
        max-height: 85vh;
    }

    .age-verify-intro h2 {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
        padding: 15px;
    }

    .answer-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .score-display strong {
        font-size: 1.5rem;
    }

    .continue-btn, .retry-btn, .close-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}