/**
 * Overlays CSS - стили для модальных окон и оверлеев
 * Вынесены из base.html для лучшей организации кода
 */

/* ========================================
   Legal Terms Modal Styles
   ======================================== */

#legal-modal-overlay {
    transition: opacity 0.3s ease;
}

#legal-modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
}

#legal-modal-overlay > div {
    animation: slideInScale 0.4s ease;
}

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

#legal-modal-overlay button:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74,74,74,0.4) !important;
}

#legal-text-scrollable::-webkit-scrollbar {
    width: 8px;
}

#legal-text-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#legal-text-scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#legal-text-scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Legal Modal - Mobile responsiveness */
@media (max-width: 768px) {
    #legal-modal-overlay > div {
        padding: 25px !important;
        max-width: 95% !important;
    }
    
    #legal-text-scrollable {
        padding: 15px !important;
        max-height: 55vh !important;
    }
    
    #legal-modal-overlay h2 {
        font-size: 20px !important;
    }
    
    #legal-modal-overlay h3 {
        font-size: 16px !important;
    }
    
    #legal-modal-overlay p,
    #legal-modal-overlay li {
        font-size: 14px !important;
    }
    
    #legal-modal-overlay button {
        padding: 14px !important;
        font-size: 15px !important;
    }
}

/* ========================================
   Age Verification Overlay Styles
   ======================================== */

.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.age-verification-modal {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
}

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

.age-icon {
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
}

.age-verification-modal h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.age-verification-modal p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.age-restriction-badge {
    font-size: 32px;
    font-weight: bold;
    color: #f44336;
    margin: 20px 0;
    padding: 5px 15px;
    display: inline-block;
    border: 3px solid #f44336;
    border-radius: 8px;
}

.age-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Age verification buttons - using .age-btn to avoid conflict with global .btn */
.age-verification-modal .btn {
    padding: 14px 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.age-verification-modal .btn-primary {
    background-color: #4a4a4a;
    color: white;
}

.age-verification-modal .btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,74,74,0.3);
}

.age-verification-modal .btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.age-verification-modal .btn-secondary:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}

/* ========================================
   Underage Page Styles
   ======================================== */

.underage-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.underage-page.show {
    display: flex;
}

.underage-content {
    background-color: white;
    padding: 40px 50px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease;
}

.underage-page h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.underage-message {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.leave-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.leave-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.4);
}

/* ========================================
   Age Verification - Mobile Responsiveness
   ======================================== */

@media (max-width: 600px) {
    .age-verification-modal,
    .underage-content {
        padding: 30px 25px;
    }
    
    .age-verification-modal h2,
    .underage-page h2 {
        font-size: 24px;
    }
    
    .age-buttons {
        flex-direction: column;
    }
    
    .age-verification-modal .btn {
        width: 100%;
    }
}

