/* ------------------------- */
/*      GLOBAL SETTINGS      */
/* ------------------------- */

html {
    font-family: "JetBrains Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: rgb(228, 228, 228);
}

body {
    background-color: rgb(58, 13, 95);
    margin: 0;
    min-height: 100vh; /* ensures page fills screen */
}

footer {
    margin-top: auto; /* pushes footer to bottom */
    text-align: center;
    font-size: 12px;
    padding-bottom: 20px;
    padding-top: 30px;
}

/* ------------------------- */
/*      TEXT BLOCK STYLE     */
/* ------------------------- */

.summary-container {
    text-align: center;
}

.summary {
    display: inline-block;
    text-align: left;
    white-space: pre-line;
    line-height: 1.6;
    padding: 10px;
}


/* ------------------------- */
/*      MAIN CONTENT         */
/* ------------------------- */

.main {
    margin-left: 270px; /* space for sidebar */
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* allows footer to stick */
}

h1 {
    text-align: center;
    font-size: 40px;
    text-shadow: 0px 0px 12px rgb(138, 112, 187);
}

h3 {
    text-align: center;
    padding-top: 35px;
    font-size: 24px;
    text-shadow: 0px 0px 12px rgb(138, 112, 187);
}


/* ------------------------- */
/*      DOWNLOAD BUTTON      */
/* ------------------------- */

.host {
    padding: none;
    margin: none;
    color: rgb(182, 182, 182);
    font-size: 12px;
}

.downloads {
    text-align: center;
    height: 130px;
    margin: 50px;
}

.english-button-link {
    display: inline-block;
    padding: 22px 70px;
    background: linear-gradient(to bottom, rgba(101, 78, 201, 0.8), rgba(120, 50, 161, 0.8));
    color: white;
    text-decoration: none;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    font-size: 18px;
    margin: 10px;
}

.english-button-link:hover {
    background: linear-gradient(to bottom, rgba(122, 99, 226, 0.8), rgba(154, 72, 201, 0.8));
    box-shadow: 0 10px 16px rgba(127, 103, 236, 0.8), 0 0 10px rgba(164, 78, 214, 0.8);
    transform: translateY(-2px);
    font-size: 20px;
}

.polish-button-link {
    display: inline-block;
    padding: 22px 70px;
    background: linear-gradient(to bottom, rgba(221, 38, 99, 0.8), rgba(168, 60, 96, 0.8));
    color: white;
    text-decoration: none;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    font-size: 18px;
    margin: 10px;
}

.polish-button-link:hover {
    background: linear-gradient(to bottom, rgba(230, 95, 140, 0.8), rgba(196, 67, 110, 0.8));
    box-shadow: 0 10px 16px rgba(236, 102, 147, 0.8), 0 0 10px rgba(214, 79, 124, 0.8);
    transform: translateY(-2px);
    font-size: 20px;
}

/*
.button-link {
    display: inline-block;
    padding: 22px 70px;
    background: linear-gradient(to bottom, rgba(78, 201, 84, 0.8), rgba(72, 161, 50, 0.8));
    color: white;
    text-decoration: none;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    font-size: 18px;
    margin: 10px;
}
*/

/*
.button-link:hover {
    background: linear-gradient(to bottom, rgba(100, 220, 116, 0.9), rgba(60, 180, 76, 0.9));
    box-shadow: 0 10px 16px rgba(63, 179, 82, 0.6), 0 0 10px rgba(100, 220, 100, 0.5);
    transform: translateY(-2px);
    font-size: 20px;
}
*/

small {
    color: rgb(182, 182, 182);
    font-size: 14px;
}

/* ------------------------- */
/*         SIDEBAR           */
/* ------------------------- */

.sidebar {
    height: 100vh;
    width: 150px;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(119, 40, 129, 0.8), rgba(114, 27, 110, 0.8));
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    text-shadow: 0px 0px 8px rgb(138, 112, 187);
}

.sidebar a {
    padding: 12px 20px;
    width: 90%;
    margin: 8px 0;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(to bottom, rgba(101, 78, 201, 0.8), rgba(120, 50, 161, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
}

.sidebar a:hover,
.sidebar a.active {
    background: linear-gradient(to bottom, rgba(110, 89, 204, 0.8), rgba(125, 59, 163, 0.8));
    box-shadow: 0 10px 16px rgba(127, 103, 236, 0.8), 0 0 10px rgba(164, 78, 214, 0.8);
    transform: translateY(-2px);
}


/* ------------------------- */
/*    SYSTEM REQUIREMENTS    */
/* ------------------------- */

.req-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 40px auto 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    width: fit-content;
    max-width: 80%;
}

.req-box summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    color: white;
    transition: 0.2s;
}

.req-box summary:hover {
    color: rgb(196, 100, 220);
    text-shadow: 0 0 8px rgba(182, 100, 220, 0.7);
}

.req-box[open] summary {
    color: rgb(196, 100, 220);
}


/* ========================= */
/*      RESPONSYWNOŚĆ       */
/* ========================= */

@media (max-width: 1600px) {

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: none;
        border-right: none;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar a {
        width: auto;
        margin: 0 5px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .main {
        margin-left: 0;
        padding: 15px;
        min-height: 100vh; /* still required */
    }

    h1 {
        font-size: 28px;
        text-shadow: 0px 0px 8px rgb(138, 112, 187);
    }

    .summary {
        max-width: 90%;
        padding: 8px;
    }

    .button-link {
        padding: 16px 36px;
        font-size: 16px;
    }

    .downloads {
        margin: 30px 0;
        margin-bottom: 100px;
    }

    .req-box {
        width: fit-content;
    }

    .req-box summary {
        font-size: 16px;
    }
}

@media (max-width: 1300px) {

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: none;
        border-right: none;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar a {
        width: auto;
        margin: 0 5px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .main {
        margin-left: 0;
        padding: 15px;
        min-height: 100vh; /* still required */
    }

    h1 {
        font-size: 28px;
        text-shadow: 0px 0px 8px rgb(138, 112, 187);
    }

    .summary {
        max-width: 90%;
        padding: 8px;
    }

    .button-link {
        padding: 16px 36px;
        font-size: 16px;
    }

    .downloads {
        margin: 30px 0;
        margin-bottom: 150px;
    }

    .req-box {
        width: 95%;
    }

    .req-box summary {
        font-size: 16px;
    }
}

@media (max-width: 1000px) {

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: none;
        border-right: none;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar a {
        width: auto;
        margin: 0 5px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .main {
        margin-left: 0;
        padding: 15px;
        min-height: 100vh; /* still required */
    }

    h1 {
        font-size: 28px;
        text-shadow: 0px 0px 8px rgb(138, 112, 187);
    }

    .summary {
        max-width: 90%;
        padding: 8px;
    }

    .button-link {
        padding: 16px 36px;
        font-size: 16px;
    }

    .downloads {
        margin: 30px 0;
        margin-bottom: 150px;
    }

    .req-box {
        width: 95%;
    }

    .req-box summary {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: none;
        border-right: none;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar a {
        width: auto;
        margin: 0 5px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .main {
        margin-left: 0;
        padding: 15px;
        min-height: 100vh; /* still required */
    }

    h1 {
        font-size: 28px;
        text-shadow: 0px 0px 8px rgb(138, 112, 187);
    }

    .summary {
        max-width: 90%;
        padding: 8px;
    }

    .button-link {
        padding: 16px 36px;
        font-size: 16px;
    }

    .downloads {
        margin: 30px 0;
        margin-bottom: 250px;
    }

    .req-box {
        width: 95%;
    }

    .req-box summary {
        font-size: 16px;
    }
}

/* News grid layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 30px;
    margin: 30px auto;
    max-width: 600px;
    grid-auto-flow: row dense; /* magic */
}

/* FIX for mobile */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr !important;
    }
}

.news-summary {
    white-space: normal;
}