/* ============================================
   DOWNLOADS MODULE STYLES
   Modern design for downloads page
   Using blue/cyan color scheme from logo
   ============================================ */

/* Downloads Section Container */
section.downloads {
    width: 100%;
    padding: 4rem 0;
    position: relative;
    background: transparent;
}

/* Page Title */
.downloads-page-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.downloads-page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Downloads Category Section */
.downloads-category {
    margin-bottom: 3rem;
}

.downloads-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.downloads-category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.downloads-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Download Card */
.download-card {
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    margin-bottom: 1.25rem;
    position: relative;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2), 0 0 40px rgba(0, 212, 255, 0.1);
}

/* Mirror Icon Section */
.download-mirror-icon {
    width: 140px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: rgba(0, 212, 255, 0.05);
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.download-mirror-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.download-card:hover .download-mirror-icon::before {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
}

.download-mirror-icon img {
    width: 100%;
    height: auto;
    max-width: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.download-card:hover .download-mirror-icon img {
    transform: scale(1.1);
}


/* Download Content */
.download-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Download Header */
.download-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.download-info {
    flex: 1;
}

.download-title {
    margin: 0 0 0.5rem 0;
    color: #e0e0e0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.download-card:hover .download-title {
    color: #00d4ff;
}

.download-description {
    margin: 0;
    color: #9e9e9e;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mirror Badge */
.mirror-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    color: #9e9e9e;
    border: 1px solid rgba(0, 212, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.mirror-badge i {
    color: #00d4ff;
    font-size: 0.9rem;
}

.download-card:hover .mirror-badge {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 153, 204, 0.15) 100%);
    border-color: rgba(0, 212, 255, 0.4);
    color: #b0b0b0;
}

/* Download Footer */
.download-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.download-size {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9e9e9e;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.download-size i {
    color: #00d4ff;
    font-size: 1rem;
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    background: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: rgba(0, 212, 255, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    color: #5ce1ff !important;
    text-decoration: none;
    border-color: rgba(0, 212, 255, 0.6);
}

.download-btn i {
    font-size: 1rem;
}

/* Empty State */
.downloads-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9e9e9e;
    font-size: 1.1rem;
    background: #121212;
    border: 1px dashed rgba(0, 212, 255, 0.3);
    border-radius: 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .downloads-category-header {
        padding: 1.25rem;
    }
    
    .downloads-category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .downloads-page-title h1 {
        font-size: 2rem;
    }
    
    .download-card {
        flex-direction: column;
    }
    
    .download-mirror-icon {
        width: 100%;
        min-width: unset;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    }
    
    .download-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .downloads-page-title h1 {
        font-size: 1.5rem;
    }
    
    .downloads-category-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .downloads-category-title {
        font-size: 1.25rem;
    }
    
    .download-content {
        padding: 1.25rem;
    }
    
    .download-title {
        font-size: 1rem;
    }
    
    .download-description {
        font-size: 0.85rem;
    }
}
