/* === GLOBAL === */
body {
    margin: 0;
    background-color: #141312;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

/* === LAYOUT === */
.main {
    display: flex;
    flex-direction: column;
    width: 100vw;
    background-color: #fcf1f1;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    height: 10vh;
    min-height: 60px;
    width: 100%;
    background-color: #141312;
    box-sizing: border-box;
    padding: 16px 40px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 12px;
}

.logo img {
    height: 7vh;
    min-height: 45px;
    max-height: 100%;
    width: auto;
    display: block;
}

.logo_text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo_name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.logo_tagline {
    margin: 3px 0 0;
    font-size: 0.9rem;
    color: #cfcfcf;
    opacity: 0.9;
}

/* ===== NAVIGATION LINKS ===== */
.header_links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 4px 12px;
}

/* Make anchors look/behave like buttons (no underline, centered text) */
.header_link {
    display: flex;                  /* centers text inside */
    align-items: center;
    justify-content: center;
    background-color: #141312;
    color: #ffffff;
    font-size: 1rem;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.6em 1.4em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.06s ease;
    min-height: 44px;
    text-decoration: none;          /* no underline */
}

.header_link:hover { background-color: #fe6e00; }
.header_link:active { transform: translateY(1px); }

.header_link:visited,
.header_link:focus,
.header_link:active {
    color: #ffffff;
    text-decoration: none;
}

/* Accessible focus (custom, not the default blue ring) */
.header_link:focus-visible {
    outline: 2px solid #fe6e00;
    outline-offset: 2px;
}

/* Current page indicator using aria-current="page" */
.header_link[aria-current="page"] {
    background-color: #fe6e00;
    border-color: #fe6e00;
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: #1c1b1a;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero_inner { max-width: 900px; }

.hero_title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fe6e00;
}

.hero_subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #dddddd;
    margin-bottom: 36px;
}

.hero_list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero_list li {
    background-color: #2a2a2a;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.hero_buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero_btn {
    font-size: 1rem;
    padding: 0.8em 1.8em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.08s ease;
}

.hero_btn.primary { background-color: #fe6e00; color: white; }
.hero_btn.primary:hover { background-color: #ff8b33; }

.hero_btn.secondary {
    background-color: transparent;
    color: #fe6e00;
    border: 2px solid #fe6e00;
}
.hero_btn.secondary:hover { background-color: #fe6e00; color: white; }

.hero_btn:active { transform: translateY(1px); }

/* ===== DOWNLOADS GRID & CARDS ===== */
.downloads_section {
    background-color: #141312;
    padding: 40px 20px 80px;
    display: flex;
    justify-content: center;
}

.downloads_grid {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.download_card {
    background-color: #1c1b1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.download_title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.download_desc {
    margin: 0;
    color: #dddddd;
    line-height: 1.5;
    font-size: 0.98rem;
}

.download_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9a9a9a;
    font-size: 0.85rem;
}

.download_btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #fe6e00;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.6em 1.2em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.06s ease;
    margin-top: 6px;
}

.download_btn:hover { background-color: #ff8b33; }
.download_btn:active { transform: translateY(1px); }

.download_empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #cfcfcf;
    background-color: #1c1b1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 40px 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .downloads_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 12px;
        height: auto;
    }

    .logo {
        justify-content: center;
        padding: 8px;
    }

    .header_links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 8px;
    }

    .logo_name { font-size: 1.2rem; }
    .logo_tagline { font-size: 0.8rem; }

    .hero { padding: 60px 20px; }
    .hero_title { font-size: 2rem; }
    .hero_subtitle { font-size: 1rem; }

    .hero_list { gap: 10px; }
    .hero_list li { font-size: 0.9rem; }

    .hero_buttons {
        flex-direction: column;
        gap: 12px;
    }

    .downloads_grid {
        grid-template-columns: 1fr;
    }
}
