/* ========================================
   СИСТЕМА УВЕДОМЛЕНИЙ MENTORA
   ======================================== */

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* ИСПРАВЛЕНО: не блокируем прокрутку */
    pointer-events: none;
}

.notification-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.notification-popup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.notification-overlay.show .notification-popup {
    transform: scale(1) translateY(0);
}

.notification-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    position: relative;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #3ECDC1 0%, #44A08D 100%);
    color: white;
}

.notification-header .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notification-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.notification-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.notification-body {
    padding: 1.5rem 2rem;
}

.notification-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.notification-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.notification-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.notification-features li i {
    color: #48bb78;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.notification-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary-custom,
.btn-secondary-custom {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #3ECDC1, #44A08D);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(62, 205, 193, 0.3);
}

.btn-secondary-custom {
    background: transparent;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary-custom:hover {
    border-color: #3ECDC1;
    color: #3ECDC1;
    background: rgba(62, 205, 193, 0.05);
}

.notification-footer {
    background: #f7fafc;
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
}

/* Анимация искр */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

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

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .notification-popup {
        width: 95%;
        margin: 1rem;
    }
    
    .notification-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .notification-body {
        padding: 1rem 1.5rem;
    }
    
    .notification-footer {
        padding: 1rem 1.5rem;
    }
    
    .notification-title {
        font-size: 1.25rem;
    }
    
    .notification-subtitle {
        font-size: 0.9rem;
    }
    
    .notification-content {
        font-size: 1rem;
    }
    
    .notification-actions {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 1rem 1.5rem;
    }
}

/* ========================================
   ТЕМНАЯ ТЕМА
   ======================================== */

[data-theme="dark"] .notification-popup {
    background: #2d3748;
    color: white;
}

[data-theme="dark"] .notification-content {
    color: #cbd5e0;
}

[data-theme="dark"] .notification-features li {
    color: #a0aec0;
}

[data-theme="dark"] .notification-footer {
    background: #1a202c;
    border-color: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .btn-secondary-custom {
    border-color: #4a5568;
    color: #cbd5e0;
}

[data-theme="dark"] .btn-secondary-custom:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* ========================================
   СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ MENTORA
   ======================================== */

.notification-header.mentora-launch {
    background: linear-gradient(135deg, #3ECDC1 0%, #44A08D 100%);
}

.notification-header.big-exam {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-header.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-header.success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}