:root {
    --background: #0f1115;
    --surface: #181b21;
    --surface-light: #222630;
    --text: #f4f4f5;
    --muted: #a5a8b0;
    --accent: #78c850;
    --accent-hover: #8cdb63;
    --border: rgba(255, 255, 255, 0.08);
}

/* =========================
   Grundinställningar
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;

    background: #0f1115;

    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}
.background-video {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    object-position: center;

    z-index: -2;

    pointer-events: none;
}

.background-overlay {
    position: fixed;
    inset: 0;

    background: rgba(15,17,21,.72);

    z-index: -1;

    pointer-events: none;
}
.hero,
.mods-section,
.features-section,
.about-section,
.download-section,
footer {
    background: transparent;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   Header
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    color: var(--muted);
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text);
}

/* =========================
   Startsida – Hero
   ========================= */

.hero {
    display: flex;
    align-items: center;
    min-height: 620px;
    background: transparent;
}

/*
   Centrerar startsidans hero när den bara innehåller
   en vanlig .container utan .hero-layout.
*/
.hero > .container:not(.hero-layout) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.hero > .container:not(.hero-layout) .hero-text {
    margin-right: auto;
    margin-left: auto;
}

.hero > .container:not(.hero-layout) .hero-buttons {
    justify-content: center;
}

.hero h1 {
    max-width: 750px;
    margin: 10px 0 20px;
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: 1;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-text {
    max-width: 620px;
    margin-top: 0;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1.15rem;
}

/* =========================
   Knappar
   ========================= */

.button,
.card-linkbutton {
    display: inline-block;
    padding: 13px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #111;
    font-weight: 800;
    text-align: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.button:hover,
.card-linkbutton:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    padding: 12px 21px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-align: center;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.secondary-button:hover {
    border-color: rgba(120, 200, 80, 0.5);
    background: var(--surface-light);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================
   Startsida – Mods
   ========================= */

.mods-section,
.about-section {
    padding: 90px 0;
}

.mods-section {
    text-align: center;
}

.mods-section h2,
.about-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.mods-section > .container > p {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin: 40px auto 0;
}

.mod-card {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    text-align: left;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.mod-card:hover {
    transform: translateY(-5px);
    border-color: rgba(120, 200, 80, 0.5);
}

.mod-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.mod-card > img {
    width: 100%;
    height: 250px;
    padding: 20px;
    background: var(--surface-light);
    object-fit: contain;
}

.mod-card-content {
    padding: 22px;
}

.mod-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.mod-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.card-link {
    color: var(--accent);
    font-weight: 700;
}

.mod-description {
    white-space: pre-line;
}

/* Kort med både ikon och GIF */

.mod-card-images {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 14px;
    align-items: stretch;
    padding: 18px;
    background: var(--surface-light);
}

.mod-card-images img {
    width: 100%;
    height: 220px;
    border-radius: 12px;
}

.mod-icon {
    padding: 12px;
    object-fit: contain;
}

.mod-preview {
    object-fit: cover;
}

/* =========================
   About
   ========================= */

.about-section {
    border-top: 1px solid var(--border);
    text-align: center;
}

.about-section p {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
}

/* =========================
   Individuella mod-sidor
   ========================= */

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    padding: 80px 0;
}

.hero-left {
    flex: 1;
    min-width: 650;
}

.hero-right {
    display: flex;
    flex: 1;
    justify-content: center;
}

.hero-icon {
    width: 220px;
    margin-bottom: 25px;
}

.hero-preview {
    width: 100%;
    max-width: 700px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.preview-card {
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dot.red {
    background: #ff5f57;
}

.preview-dot.yellow {
    background: #febc2e;
}

.preview-dot.green {
    background: #28c840;
}

.preview-title {
    margin-left: 8px;
}

.preview-title .eyebrow {
    font-size: 0.72rem;
}

.preview-card .hero-preview {
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* =========================
   Features
   ========================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: min(1120px, calc(100% - 40px));
    margin: 40px auto 90px;
}

.feature-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: left;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(120, 200, 80, 0.5);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

/* =========================
   Footer
   ========================= */

footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    max-width: 620px;
    margin: 10px auto 0;
}

/* =========================
   Surfplatta
   ========================= */

@media (max-width: 900px) {
    .hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    min-height: 75vh;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-icon {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-layout .hero-text {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-layout .hero-buttons {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   Mobil
   ========================= */

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .site-header .container {
        min-height: 64px;
    }

    .logo {
        font-size: 1.05rem;
    }

    nav {
        gap: 14px;
        font-size: 0.88rem;
    }

    .hero {
        min-height: 520px;
    }

    .hero > .container:not(.hero-layout) {
        padding: 65px 0;
    }

    .hero-layout {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .mods-section,
    .about-section {
        padding: 65px 0;
    }

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

    .mod-card-images {
        grid-template-columns: 1fr;
    }

    .mod-card-images img {
        height: 210px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 1120px);
        margin-bottom: 65px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin-right: auto;
        margin-left: auto;
    }

    .button,
    .secondary-button,
    .card-linkbutton {
        width: 100%;
    }
}
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;

    background: rgba(15, 17, 21, 0.72);
    pointer-events: none;
}

.site-header,
main,
footer {
    position: relative;
    z-index: 2;
}

.site-header,
main,
footer {
    position: relative;
    z-index: 2;
}
.site-header,
main,
footer{
    position:relative;
    z-index:1;
}

.mods-section,
.features-section,
.about-section,
.download-section,
footer{
    background:transparent;
}
.background-image {
    position: fixed;
    inset: 0;
    z-index: -2;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    z-index: -2;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;

    z-index: -1;

    background: linear-gradient(
        rgba(15,17,21,.55),
        rgba(15,17,21,.82)
    );
}
.zoom-page::before{
    background-image:url("../assets/backgrounds/zoom.png");
}

.notes-page::before{
    background-image:url("../assets/backgrounds/notes.png");
}

.minimap-page::before{
    background-image:url("../assets/backgrounds/minimap.png");
}

.manager-page::before{
    background-image:url("../assets/backgrounds/mod-manager.png");
}

.sethome-page::before{
    background-image:url("../assets/backgrounds/sethome.png");
}
.download-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
}

.version-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
}

.version-download-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 520px;
}

.version-select {
    flex: 1;
    min-width: 0;

    padding: 13px 42px 13px 16px;

    color: white;
    background-color: rgba(20, 23, 28, 0.95);

    border: 1px solid var(--border);
    border-radius: 10px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.version-select:hover {
    border-color: var(--accent);
}

.version-select:focus {
    outline: none;
    border-color: var(--accent);

    box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.15);
}

.version-select option {
    color: white;
    background: #15181d;
}

.version-download-row .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.download-section > .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {

    .version-download-row {
        flex-direction: column;
    }

    .version-select,
    .version-download-row .button,
    .download-section > .secondary-button {
        width: 100%;
    }

}
/* ========================================
   DOWNLOAD MODAL
======================================== */

.download-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.download-modal.open {
    display: flex;
}

.download-modal-content {
    position: relative;

    width: min(100%, 540px);
    padding: 36px;

    background: rgba(20, 23, 28, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

.download-modal-content h2 {
    margin-top: 8px;
    margin-bottom: 14px;
}

.download-modal-text {
    margin-bottom: 26px;
    color: var(--muted);
    line-height: 1.7;
}

.download-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.download-modal-buttons .button,
.download-modal-buttons .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.download-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 38px;
    height: 38px;

    padding: 0;

    color: white;
    background: rgba(255, 255, 255, 0.08);

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.download-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.download-modal-note {
    margin-top: 20px;
    margin-bottom: 0;

    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .download-modal-content {
        padding: 30px 22px 24px;
    }

    .download-modal-buttons {
        flex-direction: column;
    }

    .download-modal-buttons .button,
    .download-modal-buttons .secondary-button {
        width: 100%;
    }

}
/* =========================
   MODS PAGE
========================= */

.mods-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 24px;

    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary {
    background: #78c850;
    color: #111;

    box-shadow: 0 10px 28px rgba(120, 200, 80, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #8cdb63;

    box-shadow: 0 14px 34px rgba(120, 200, 80, 0.3);
}