/* offline-install-modal.css - стили для модального окна установки */

/* Стили для модального окна установки */
.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.install-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
}

.install-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--accent-blue) 0%, #667eea 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.install-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    word-break: break-word;
}

.install-modal-header h3 i {
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.install-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    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;
    font-size: 18px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.install-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.install-modal-body {
    padding: 20px;
}

.install-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.install-method {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.install-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.05);
}

.install-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.install-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.install-method-icon.pwa {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.install-method-icon.apk {
    background: linear-gradient(135deg, #34c759 0%, #32d74b 100%);
}

.install-method-icon.store {
    background: linear-gradient(135deg, #ff9500 0%, #ff9f0a 100%);
}

.install-method-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.install-method-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.install-method-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-blue);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.install-info {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(255, 149, 0, 0.05) 100%);
    border: 1px solid rgba(255, 149, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.install-info h4 {
    margin: 0 0 8px 0;
    color: #ff9500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Стили для инструкции iOS */
.ios-instructions {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.ios-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ios-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ios-step-number {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.ios-step-content {
    flex: 1;
}

.ios-step-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.ios-step-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .install-modal-content {
        max-width: 95%;
    }
    
    .install-modal-header {
        padding: 16px;
    }
    
    .install-modal-body {
        padding: 16px;
    }
    
    .install-method {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .install-modal-content {
        max-width: 98%;
    }
    
    .install-modal-header {
        padding: 14px;
    }
    
    .install-modal-body {
        padding: 14px;
    }
    
    .install-method-header {
        gap: 10px;
    }
    
    .install-method-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .ios-step {
        gap: 12px;
    }
}

/* Для темной темы */
[data-theme="dark"] .install-modal-content {
    background: #1e1e2e;
    border-color: #2d2d3e;
}

[data-theme="dark"] .install-method {
    background: #2d2d3e;
    border-color: #3d3d4e;
}

[data-theme="dark"] .install-method:hover {
    background: #3d3d4e;
}

[data-theme="dark"] .ios-instructions {
    background: #2d2d3e;
    border-color: #3d3d4e;
}