/* Download Page Specific Styles */

/* Page Title */
.page-title {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 10px;
    border: 1px solid #333;
}

.page-title h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.page-title h1 i {
    color: #ff4444;
    margin-right: 15px;
}

.page-title p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Download Categories */
.download-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #ff4444;
    background: transparent;
    color: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: #ff4444;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

/* Download Grid */
.download-grid {
    margin: 30px 0;
}

.download-section {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.download-section.active {
    display: grid;
}

/* Download Cards */
.download-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: #ff4444;
}

.download-card.main-client {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #ff4444;
}

.download-card.new-launcher {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a1a1a, #2d1a2d);
    border: 2px solid #9C27B0;
}

.download-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2a2a2a;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff4444, #ff8800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.download-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.download-badge.primary {
    background: #ff4444;
    color: #ffffff;
}

.download-badge.mobile {
    background: #00aa00;
    color: #ffffff;
}

.download-badge.patch {
    background: #0088ff;
    color: #ffffff;
}

.download-badge.hotfix {
    background: #ffaa00;
    color: #000000;
}

.download-badge.update {
    background: #2196F3;
    color: #ffffff;
}

.download-badge.tool {
    background: #8B008B;
    color: #ffffff;
}

.download-badge.guide {
    background: #ff8800;
    color: #ffffff;
}

.download-badge.launcher {
    background: #9C27B0;
    color: #ffffff;
}

/* Download Card Content */
.download-card-content {
    padding: 20px;
}

.download-card-content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.download-card-content p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Download Info */
.download-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888888;
    font-size: 0.9rem;
}

.info-item i {
    color: #ff4444;
    width: 16px;
}

/* Download Requirements */
.download-requirements {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.download-requirements h4 {
    color: #ff8800;
    margin-bottom: 10px;
    font-size: 1rem;
}

.download-requirements ul {
    list-style: none;
    padding: 0;
}

.download-requirements li {
    color: #cccccc;
    font-size: 0.85rem;
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
}

.download-requirements li::before {
    content: '•';
    color: #ff4444;
    position: absolute;
    left: 0;
}

/* Download Changelog */
.download-changelog {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff4444;
}

.download-changelog h4 {
    color: #ff4444;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.changelog-content {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.changelog-content p {
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
}

.changelog-content p::before {
    content: "•";
    color: #ff4444;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Download Actions */
.download-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download-primary,
.btn-download-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-download-primary {
    background: #ff4444;
    color: #ffffff;
}

.btn-download-primary:hover {
    background: #cc3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

.btn-download-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ff4444;
}

.btn-download-secondary:hover {
    background: #ff4444;
    transform: translateY(-2px);
}

/* Download button icons */
.btn-download-primary .fab.fa-google-drive,
.btn-download-secondary .fab.fa-google-drive {
    color: #4285F4;
}

.btn-download-primary:hover .fab.fa-google-drive,
.btn-download-secondary:hover .fab.fa-google-drive {
    color: #ffffff;
}

.btn-download-primary .fas.fa-cloud-download-alt,
.btn-download-secondary .fas.fa-cloud-download-alt {
    color: #FF6B35;
}

.btn-download-primary:hover .fas.fa-cloud-download-alt,
.btn-download-secondary:hover .fas.fa-cloud-download-alt {
    color: #ffffff;
}

/* Download Instructions */
.download-instructions {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #333;
}

.download-instructions h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.download-instructions h2 i {
    color: #ff4444;
    margin-right: 10px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.instruction-step {
    text-align: center;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #333;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ff4444;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.instruction-step h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.instruction-step p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* System Requirements */
.system-requirements {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #333;
}

.system-requirements h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.system-requirements h2 i {
    color: #ff4444;
    margin-right: 10px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.requirement-category {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
}

.requirement-category h3 {
    color: #ff8800;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.requirement-category ul {
    list-style: none;
    padding: 0;
}

.requirement-category li {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.requirement-category li:last-child {
    border-bottom: none;
}

.requirement-category strong {
    color: #ffffff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    border: 1px solid #333;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #ff4444;
    color: #ffffff;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #cccccc;
}

.modal-body {
    padding: 30px;
    color: #ffffff;
}

/* Mirror Links */
.mirror-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mirror-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.mirror-item h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-mirror {
    background: #ff4444;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-mirror:hover {
    background: #cc3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .download-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .btn-download-primary,
    .btn-download-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .download-card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .download-info {
        gap: 8px;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
    
    .download-requirements {
        padding: 10px;
    }
    
    .download-requirements li {
        font-size: 0.8rem;
    }
}

/* Animation for download cards */
.download-card {
    animation: fadeInUp 0.6s ease-out;
}

.download-card:nth-child(1) { animation-delay: 0.1s; }
.download-card:nth-child(2) { animation-delay: 0.2s; }
.download-card:nth-child(3) { animation-delay: 0.3s; }
.download-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bar for downloads */
.download-progress {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.download-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff8800);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Download status indicators */
.download-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.download-status.downloading {
    color: #ff8800;
}

.download-status.completed {
    color: #00aa00;
}

.download-status.error {
    color: #ff4444;
} 