/* ===================================
   RaceForge Downloads Page Styles
   =================================== */

#downloads-page-wrapper .container {
    max-width: 950px;
}

#downloads-page-wrapper .page-title {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Application Section --- */
.app-section {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    margin-bottom: 3rem;
}

.app-showcase {
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.app-info .app-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}
.app-info .app-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.app-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.app-info .version-info {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}
.app-screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}
#iracing-section .app-screenshot { text-align: right; }
#acc-section .app-screenshot { text-align: left; }
#acc-section .app-showcase { grid-template-columns: 400px 1fr; }
#acc-section .app-info { order: 2; }


/* --- Tabs Interface --- */
.app-tabs { background-color: rgba(0,0,0,0.2); }
.tab-nav { display: flex; list-style: none; margin: 0; padding: 0 1.5rem; border-bottom: 1px solid var(--border-color); }
.tab-btn { padding: 1rem 0; margin-right: 2rem; border: none; background: none; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: color 0.2s, border-bottom-color 0.2s; border-bottom: 3px solid transparent; }
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.tab-content { padding: 1.5rem 2rem; }
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }
.tab-pane h4 { font-size: 1.4rem; color: #fff; margin-top: 0; margin-bottom: 15px; }
.tab-pane p, .tab-pane li { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }
.tab-pane .feature-list { list-style: none; padding-left: 0; }
.tab-pane .feature-list li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.tab-pane .feature-list li::before { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--accent-blue); position: absolute; left: 0; top: 4px; }
.install-step { background-color: rgba(0,0,0,0.2); padding: 1rem; border-radius: 4px; margin-bottom: 1rem; border-left: 3px solid var(--accent-blue); }
.install-step strong { display: block; font-size: 1rem; color: var(--text-primary); margin-bottom: 5px; }

/* --- Download Modal --- */
.custom-modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(16,16,18,0.9); align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.3s ease; }
.custom-modal-content { background-color: var(--bg-panel); border: 1px solid var(--border-color); padding: 2rem; border-radius: 4px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); max-width: 500px; width: 100%; text-align: center; border-top: 3px solid var(--accent-blue); }
.custom-modal-content h3 { color: var(--accent-blue); font-family: var(--font-mono); margin-top: 0; margin-bottom: 1rem; font-size: 1.3rem; }
.custom-modal-content p { margin-bottom: 1.5rem; line-height: 1.6; }
.custom-modal-actions { display: flex; justify-content: center; gap: 1rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .app-showcase, #acc-section .app-showcase { grid-template-columns: 1fr; }
    #iracing-section .app-screenshot, #acc-section .app-screenshot { text-align: center; order: -1; margin-bottom: 2rem; }
    .app-info { text-align: center; }
    .app-actions { justify-content: center; }
}