/* Nyxcord - styles.css */

/* ===== Global ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0d0b14;
    --surface: #171421;
    --surface-hover: #211c30;
    --primary: #9565ed;
    --primary-hover: #ad83ff;
    --text: #f4f0ff;
    --muted: #a49bb8;
    --border: #30283e;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    padding: 40px;
}

/* ===== Headings ===== */

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 14px;
}

p {
    color: var(--muted);
    margin-bottom: 15px;
}

/* ===== Buttons ===== */

button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #9565ed40;
}

button:active {
    transform: translateY(0);
}

button:focus-visible {
    outline: 3px solid var(--primary-hover);
    outline-offset: 4px;
}

/* ===== Links ===== */

a {
    color: var(--primary-hover);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: white;
}

/* ===== Version cards ===== */

#versions {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
    margin-top: 35px;
    max-width: 650px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

#versions:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

#versions h1 {
    font-size: 1.8rem;
    color: var(--primary-hover);
    margin-bottom: 8px;
}

/* ===== Download page ===== */

#linux,
#win {
    min-width: 140px;
}

body:has(#linux),
body:has(#win) {
    max-width: 850px;
    margin: auto;
}

/* ===== Responsive layout ===== */

@media (max-width: 600px) {
    body {
        padding: 25px 18px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    button {
        width: 100%;
        padding: 14px;
    }

    #versions {
        padding: 20px;
    }
}

/* ===== Selection ===== */

::selection {
    background: var(--primary);
    color: white;
}

/* ===== Scrollbar ===== */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}