/* ================================
   RetroSuit — Downloads Page CSS
   ================================ */

/* --------- Variables --------- */
:root {
    --bg-dark: #0e0e12;
    --bg-card: #121212;
    --bg-accent: #1f1f27;
    --primary: #4f8cff;
    --secondary: #00d1b2;
    --text-main: #ffffff;
    --text-soft: #d5d5d5;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0,0,0,0.35);
    --shadow-light: 0 4px 14px rgba(0,0,0,0.25);
    --transition: 0.25s ease;
    --font-base: "Poppins", sans-serif;
}

/* --------- Base --------- */
body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-base);
    margin: 0;
    line-height: 1.75;
}

/* PAGE LAYOUT WRAPPER */
.guide-layout { /* reused structure for consistency */
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* ================================
   SIDEBAR
   ================================ */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.7rem;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 1rem;
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.sidebar a:hover {
    background: var(--bg-accent);
    color: var(--primary);
}

.sidebar a.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(79,140,255,0.3);
}

/* ================================
   MAIN CONTENT AREA
   ================================ */
.guide-content {
    flex: 1;
    max-width: 900px;
}

/* Container for JS-injected sections */
#download-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

/* ================================
   DOWNLOAD SECTION (new)
   ================================ */
.download-section h1 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.download-section p {
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ================================
   PREVIEW IMAGE
   ================================ */
.download-preview {
    width: 100%;
    background: var(--bg-card);
    padding: 1.3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.download-preview img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-light);
}

/* ================================
   DOWNLOAD BUTTON
   ================================ */
.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 0 12px rgba(79,140,255,0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(79,140,255,0.55);
}

/* ================================
   COMPACT DOWNLOAD TABLE
   ================================ */

.download-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
}

/* Make table visually smaller */
.download-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--bg-dark);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Header */
.download-table th {
    background: var(--bg-accent);
    padding: 0.6rem 0.75rem;
    text-align: left;
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid #1b1b21;
    white-space: nowrap;
}

/* Body cells */
.download-table td {
    padding: 0.5rem 0.75rem;
    color: var(--text-soft);
    border-bottom: 1px solid #16161c;
    white-space: nowrap;
}

/* Hover highlight */
.download-table tr:hover td {
    background: #1b1b23;
    color: #ffffff;
}

/* Slight soften on last row border */
.download-table tr:last-child td {
    border-bottom: none;
}

/* Make table itself narrower visually */
.download-section .table-title {
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */
@media (max-width: 950px) {
    .guide-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
}
