/* Стили модального окна возрастного ограничения */
.age-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.age-modal {
    background: linear-gradient(145deg, #1f2937, #111827);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    margin: 20px;
    overflow: hidden;
    position: relative;
    animation: scaleIn 0.3s ease-out 0.1s both;
}

.age-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3366, #ff6b9d);
}

.age-modal-content {
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
}

.age-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.3);
    position: relative;
}

.age-modal-icon::after {
    content: '18+';
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #111827;
    color: #ff3366;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    border: 2px solid #ff3366;
}

.age-modal-icon i {
    font-size: 36px;
    color: white;
}

.age-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Pacifico', cursive;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.age-modal-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.age-modal-description p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #d1d5db;
}

.age-modal-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #fca5a5 !important;
    font-size: 14px !important;
    font-weight: 500;
}

.age-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.age-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.age-modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.age-modal-btn:hover::before {
    left: 100%;
}

.age-modal-btn-confirm {
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.age-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.4);
}

.age-modal-btn-deny {
    background: rgba(107, 114, 128, 0.3);
    color: #d1d5db;
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.age-modal-btn-deny:hover {
    background: rgba(107, 114, 128, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.age-modal-btn i {
    font-size: 18px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Мобильная адаптация */
@media (max-width: 640px) {
    .age-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .age-modal-content {
        padding: 30px 20px;
    }
    
    .age-modal-title {
        font-size: 24px;
    }
    
    .age-modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .age-modal-icon i {
        font-size: 32px;
    }
    
    .age-modal-description p {
        font-size: 15px;
    }
    
    .age-modal-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Специальные эффекты для подчеркивания важности */
.age-modal-overlay.show {
    animation: pulseBackground 2s ease-in-out infinite;
}

@keyframes pulseBackground {
    0%, 100% {
        background: rgba(0, 0, 0, 0.9);
    }
    50% {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Эффект печатания для заголовка */
.age-modal-title.typing {
    overflow: hidden;
    border-right: 2px solid #ff3366;
    white-space: nowrap;
    animation: typing 2s steps(40), blink 1s infinite;
    min-height: 47px;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}
