/* assets/css/updates.css */

/* Модальное окно обновления */
.update-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.update-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.update-modal .modal-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px 20px 0 0;
    color: white;
}

.update-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    flex: 1;
}

.update-icon {
    margin-right: 15px;
    font-size: 1.8em;
}

.update-modal .modal-body {
    padding: 30px;
}

.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.old-version, .new-version {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.old-version {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.new-version {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.old-version i, .new-version i {
    font-size: 1.2em;
}

.changelog-section {
    margin-bottom: 25px;
}

.changelog-section h3 {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid #6366f1;
}

.changelog-list li i {
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

.changelog-list li span {
    color: #cbd5e1;
    line-height: 1.5;
}

.update-notes {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.note-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #93c5fd;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-item i {
    color: #3b82f6;
    flex-shrink: 0;
}

.update-modal .modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.update-modal .modal-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 14px;
    font-size: 1em;
    font-weight: 600;
}

/* Уведомление в углу экрана */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transform: translateX(0);
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-notification.hidden {
    transform: translateX(400px);
    opacity: 0;
}

.update-notification .update-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.update-notification .update-header i {
    font-size: 1.3em;
}

.update-notification .update-header strong {
    font-size: 1.1em;
}

.update-changelog {
    margin: 12px 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.update-changelog ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.update-changelog li {
    margin-bottom: 4px;
}

.update-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.update-actions button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.update-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .update-modal {
        width: 95%;
        margin: 10px;
    }
    
    .version-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .update-modal .modal-footer {
        flex-direction: column;
    }
    
    .update-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}