/* Download Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    background: #0f0f0f;
    border: 1px solid #222222;
    border-radius: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay:not(.hidden) .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #222222;
    background: #0a0a0a;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    color: #ffffff;
    background: #222222;
}

.modal-body {
    padding: 32px;
}

.download-hero {
    text-align: center;
    margin-bottom: 32px;
}

.download-icon {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.download-icon i {
    font-size: 32px;
    color: #ffffff;
}

.download-description {
    font-size: 16px;
    color: #aaaaaa;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid #1a4a3a;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 20px;
    color: #22c55e;
}

.info-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #e5f5e5;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 12px;
    color: #86b386;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.download-btn.primary {
    background: linear-gradient(135deg, #00ff88, #22c55e);
    color: #0a0a0a;
    border: none;
}

.download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.download-btn.secondary {
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.download-btn.secondary:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.download-notes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: #86b386;
}

.note i {
    color: #22c55e;
    font-size: 14px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .download-info {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-container.show {
    animation: modalFadeIn 0.3s ease;
}
