/* Download Modal Styles */

.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-modal.hidden {
    display: none;
}

.download-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.download-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: downloadModalSlideIn 0.3s ease-out;
}

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

.download-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 30px 25px;
    text-align: center;
    position: relative;
}

.download-header-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.download-modal-header h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
}

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

.download-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.download-modal-body {
    padding: 25px 30px 30px;
    overflow-y: auto;
    max-height: calc(85vh - 150px);
}

/* Recommended Download Section */
.download-detected-os {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f3f4f6;
}

.download-detected-os h3,
.download-all-platforms h3 {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-recommended {
    display: flex;
    justify-content: center;
}

.download-recommended .download-btn {
    padding: 20px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.download-recommended .download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.download-recommended .download-btn .download-format {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Platform Sections */
.download-platform-section {
    margin-bottom: 20px;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.platform-icon {
    font-size: 1.5rem;
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 140px;
}

.download-btn:hover {
    background: #f3f4f6;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.download-btn.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.download-btn.unavailable::after {
    content: "Coming soon";
    font-size: 0.7rem;
    color: #9ca3af;
    margin-left: auto;
}

.download-icon {
    font-size: 1.5rem;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.download-format {
    font-weight: 700;
    font-size: 0.95rem;
}

.download-arch {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Info Section */
.download-info-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
    text-align: center;
}

.download-version {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0 0 8px;
}

.download-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Download Button in Header */
.download-app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.download-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.download-app-btn .btn-icon {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .download-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .download-modal-header {
        padding: 20px;
    }
    
    .download-header-icon {
        font-size: 36px;
    }
    
    .download-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .download-modal-body {
        padding: 20px;
    }
    
    .download-options {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
    }
    
    .download-recommended .download-btn {
        padding: 15px 25px;
    }
}
