/* Download Page Specific Styles */

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Section Styles */
.download-section {
    padding: 4rem 0;
}

.download-options {
    margin-bottom: 4rem;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 600px;
    margin: 0 auto;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.download-card.primary {
    border-color: var(--primary-color);
    border-width: 2px;
}

.download-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.download-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.version-info {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .version-info {
    background: rgba(255, 255, 255, 0.1);
}

.version-info .version {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.version-info .release-date {
    opacity: 0.8;
    color: var(--text-light);
    font-size: 0.9rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.download-buttons .btn {
    width: 100%;
    max-width: 250px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.download-buttons .btn-large {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

/* Requirements Section */
.requirements-section {
    margin-bottom: 4rem;
}

.requirements-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.requirements-container {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    overflow-x: auto;
}

.requirements-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.requirements-table th {
    background: var(--light-bg);
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-size: 1rem;
}

.requirements-table th:first-child {
    width: 25%;
    min-width: 150px;
}

.requirements-table th:nth-child(2) {
    width: 37.5%;
    color: var(--warning-color);
}

.requirements-table th:nth-child(3) {
    width: 37.5%;
    color: var(--accent-color);
}

.requirements-table td {
    padding: 1rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    line-height: 1.5;
}

.requirements-table td:first-child {
    font-weight: 600;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .requirements-table td:first-child {
    background: rgba(255, 255, 255, 0.02);
}

.requirements-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .requirements-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Important Notices */
.important-notices {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.important-notices h4 {
    color: var(--warning-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.important-notices ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-notices li {
    padding: 0.5rem 0;
    color: var(--text-color);
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

.important-notices li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.important-notices strong {
    color: var(--danger-color);
    font-weight: 600;
}

/* Installation Section */
.installation-section {
    margin-bottom: 4rem;
}

.installation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.method-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
}

.method-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.install-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.install-steps li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.install-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.install-steps code {
    background: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.note {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.note.warning {
    border-left-color: var(--warning-color);
    background: rgba(255, 152, 0, 0.1);
}

.note strong {
    color: var(--text-color);
}

/* Updates Section */
.updates-section {
    margin-bottom: 4rem;
}

.update-info {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
}

.update-info h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.update-info ul {
    list-style: none;
    padding: 0;
}

.update-info li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

.update-info li::before {
    content: "✅ ";
    margin-right: 0.5rem;
}

.version-history {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
}

.version-history h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.version-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.version-table th,
.version-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.version-table th {
    background: var(--light-bg);
    color: var(--text-color);
    font-weight: 600;
}

.version-table td {
    color: var(--text-light);
}

.version-table td strong {
    color: var(--text-color);
}

/* Troubleshooting Section */
.troubleshooting-section {
    margin-bottom: 4rem;
}

.troubleshoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.troubleshoot-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.troubleshoot-item h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.troubleshoot-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.troubleshoot-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.troubleshoot-item li {
    padding: 0.3rem 0;
    color: var(--text-light);
    line-height: 1.5;
}

.troubleshoot-item li::before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.troubleshoot-item a {
    color: var(--link-color);
    text-decoration: none;
}

.troubleshoot-item a:hover {
    text-decoration: underline;
}

/* Mirror Sources Section */
.mirrors-section {
    margin-bottom: 4rem;
}

.mirrors-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

.mirrors-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.mirrors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mirror-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.mirror-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.mirror-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mirror-icon {
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Platform-specific icon sizes */
.mirror-card img[src*="itchio-icon"] {
    width: 120px;
    height: 40px;
}

.mirror-card img[src*="gamebanana-icon"] {
    width: 120px;
    height: 50px;
}

.mirror-card img[src*="sourceforge-icon"] {
    width: 140px;
    height: 30px;
}

.mirror-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.4rem;
}

.mirror-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.mirror-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.mirror-card .btn {
    width: 100%;
    max-width: 250px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.mirrors-note {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.mirrors-note p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Responsive Download Page Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .installation-methods {
        grid-template-columns: 1fr;
    }
    
    .troubleshoot-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .method-card {
        padding: 1.5rem;
    }
    
    .mirrors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mirrors-section {
        padding: 1.5rem;
    }
    
    .mirrors-section h2 {
        font-size: 1.6rem;
    }
    
    .requirements-container {
        padding: 1rem;
    }
    
    .requirements-table th,
    .requirements-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .requirements-table th:first-child,
    .requirements-table td:first-child {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .method-card {
        padding: 1rem;
    }
    
    .install-steps li {
        padding-left: 2rem;
        font-size: 0.9rem;
    }
    
    .install-steps li::before {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.7rem;
    }
    
    .version-table {
        font-size: 0.9rem;
    }
    
    .version-table th,
    .version-table td {
        padding: 0.5rem;
    }
    
    .requirements-container {
        padding: 0.75rem;
    }
    
    .requirements-table {
        font-size: 0.8rem;
    }
    
    .requirements-table th,
    .requirements-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .requirements-table th:first-child,
    .requirements-table td:first-child {
        min-width: 100px;
        font-size: 0.75rem;
    }
}
