﻿/* ============
   DOWNLOAD CSS
   (improved without breaking your button)
=========== */

/* Section backgrounds (keeps your original style direction) */
.connect-section {
    min-height: 50vh;
    background-image: linear-gradient(180deg, rgba(7,10,18,.52), rgba(7,10,18,.80)), url("../img/bg/download.jpg");
}

.download-section {
    min-height: 30vh;
    background-image: linear-gradient(180deg, rgba(7,10,18,.50), rgba(7,10,18,.78)), url("../img/pages/download/download-background.jpg");
}

.help-section {
    background-image: linear-gradient(180deg, rgba(7,10,18,.52), rgba(7,10,18,.80)), url("../img/pages/download/help-background.jpg");
}

/* ✅ System requirements must be readable */
.requirements-section {
    background: #f2f3f3;
    color: #000;
}

.requirements-section .section-title,
.requirements-section h2,
.requirements-section p,
.requirements-section .table,
.requirements-section .table th,
.requirements-section .table td,
.requirements-section .table thead th,
.requirements-section .table tbody td {
    color: #101318 !important;
}

.driver-section {
    min-height: 35vh;
    background: #f2f3f3;
    color: #000;
}

/* Hero text */
.download-lead {
    color: rgba(255,255,255,.84);
    line-height: 1.55;
    font-size: 18px;
}

/* Small pills under launcher button */
.download-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-pill {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.22);
    color: rgba(255,255,255,.86);
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* Hero image */
.download-hero-art {
    align-items: center;
    justify-content: center;
}

.download-art {
    max-width: 520px;
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.75));
}

/* Download methods */
.download-method {
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.22);
    transition: transform .15s ease, background .15s ease;
}

    .download-method:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.04);
    }

.download-logo-wrap {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.download-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.fallback-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .fallback-icon i {
        font-size: 30px;
        color: rgba(255,255,255,.92);
    }

.download-method-desc {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.download-method-link {
    color: #66b3ff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

    .download-method-link:hover {
        text-decoration: underline;
    }

/* Tip box */
.download-tip {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.20);
    padding: 14px 16px;
    color: rgba(255,255,255,.85);
}

/* ✅ Requirements card: readable even if global body is dark */
.requirements-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.10);
    background: #ffffff;
}

.table-requirements {
    color: #000 !important;
}

    .table-requirements thead th {
        font-family: "Cinzel", serif;
        font-weight: 700;
        background: #f7f7f7;
        color: #101318 !important;
        border-bottom: 1px solid rgba(0,0,0,.12) !important;
    }

    .table-requirements td {
        background: transparent;
        color: #101318 !important;
        border-top: 1px solid rgba(0,0,0,.08) !important;
    }

.table-requirements tbody tr:nth-child(even) td {
    background: rgba(10, 16, 24, 0.02);
}

/* Help section text readability */
.help-section .download-sub {
    color: rgba(255,255,255,.82);
}

/* Drivers: make links nicer */
.driver-links {
    display: grid;
    gap: 10px;
    max-width: 860px;
}

    .driver-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,.10);
        background: rgba(255,255,255,.70);
        color: #000;
        text-decoration: none;
        transition: transform .15s ease, background .15s ease;
    }

        .driver-links a:hover {
            transform: translateY(-2px);
            background: rgba(255,255,255,.95);
        }

/* Responsive */
@media (max-width: 992px) {
    .download-art {
        max-width: 420px;
    }
}
/* Card becomes the clickable button */
.download-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

/* Make the "Download" look like a button but keep your style */
.download-method-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    width: 160px;
}

/* Improve hover feedback on entire card */
.download-card-link:hover .download-method-btn {
    background: rgba(255,255,255,.10);
}
/* Card becomes the clickable download area */
.download-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

    .download-card-link:focus-visible {
        outline: 2px solid rgba(255,255,255,.45);
        outline-offset: 4px;
        border-radius: 16px;
    }

/* Bigger "Install Launcher" button (keep same blue image style) */
.btn-blue.btn-install-launcher {
    width: 260px; /* was ~182px in default */
    padding: 14px 22px !important;
    font-size: 16px;
    letter-spacing: .2px;
}
/* Bigger "Install Launcher" (same blue button image, but scaled) */
.btn-image.btn-blue.btn-install-launcher {
    width: auto !important; /* don't push layout */
    min-width: 240px !important; /* give room for the text */
    padding: 23px 28px !important; /* same height feel as original */
    background-size: 100% 100% !important; /* IMPORTANT: visually scales the button image */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

