/* Модальное окно подтверждения возраста */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ageFadeIn 0.3s ease;
}

.age-verification-modal {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ageSlideUp 0.4s ease;
}

.age-verification-modal .age-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.age-verification-modal h2 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.age-verification-modal p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.age-verification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    padding: 14px 35px;
    font-size: 17px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 120px;
}

.age-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.age-btn-yes {
    background: #27ae60;
    color: white;
}

.age-btn-yes:hover:not(:disabled) {
    background: #229954;
    transform: scale(1.05);
}

.age-btn-no {
    background: #e74c3c;
    color: white;
}

.age-btn-no:hover:not(:disabled) {
    background: #c0392b;
    transform: scale(1.05);
}

/* БЛОКИРОВКА КОНТЕНТА */
body.age-blocked .book-container,
body.age-blocked .book-content,
body.age-blocked .entry-content,
body.age-blocked .bookmark-indicator,
body.age-blocked .menu-btn,
body.age-blocked .book-controls,
body.age-blocked .nav-circle {
    filter: blur(12px) !important;
    pointer-events: none !important;
    user-select: none !important;
    opacity: 0.5 !important;
}

/* Скрываем все интерактивные элементы при блокировке */
body.age-blocked .menu-btn,
body.age-blocked .nav-circle,
body.age-blocked .book-controls,
body.age-blocked .control-btn {
    display: none !important;
}

/* Сообщение о блокировке */
.age-blocked-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    z-index: 999998;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ageSlideUp 0.4s ease;
}

body.age-blocked .age-blocked-message {
    display: block !important;
}

.age-blocked-message .age-block-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.age-blocked-message h2 {
    color: #e74c3c;
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.age-blocked-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

@keyframes ageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ageSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .age-verification-modal {
        padding: 30px 20px;
    }
    
    .age-verification-modal h2 {
        font-size: 22px;
    }
    
    .age-verification-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .age-btn {
        width: 100%;
    }
}