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

body {
    background-color: rgb(10, 14, 71);
    margin: 0;
    min-height: 100vh;    /* full page height */
}

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

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

.summary-container {
    text-align: center; /* wycentrowanie bloku */
    width: 100%;
}

.summary {
    white-space: pre-line;
    text-align: left;
    display: inline-block; /* szerokość dopasowana do treści */
    line-height: 1.6;
    padding: 10px;
}

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

/* ================================
   SOCIAL BUTTONS
================================ */
.socials {
    text-align: center;
    margin: 50px 0;
}

.button-link {
    display: inline-block;
    padding: 22px 46px;
    background: linear-gradient(to bottom, rgba(78, 86, 201, 0.8), rgba(50, 58, 161, 0.8));
    color: white;
    text-decoration: none;
    border-radius: 28px;
    text-align: center;
    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, 110, 220, 0.9), rgba(60, 68, 180, 0.9));
    box-shadow: 0 10px 16px rgba(78, 63, 179, 0.6), 0 0 10px rgba(100, 110, 220, 0.5);
    transform: translateY(-2px);
    font-size: 20px;
}

/* ================================
   SIDEBAR
================================ */
.sidebar {
    height: 100vh;
    width: 150px;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(50, 58, 161, 0.8), rgba(30, 35, 120, 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;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    width: 90%;
    text-align: center;
    margin: 8px 0;
    border-radius: 20px;
    background: linear-gradient(to bottom, rgba(78, 86, 201, 0.8), rgba(50, 58, 161, 0.8));
    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;
}

.sidebar a:hover,
.sidebar a.active {
    background: linear-gradient(to bottom, rgba(100, 110, 220, 0.9), rgba(60, 68, 180, 0.9));
    box-shadow: 0 10px 16px rgba(78, 63, 179, 0.6), 0 0 10px rgba(100, 110, 220, 0.5);
    transform: translateY(-2px);
}

/* ================================
   RESPONSYWNOŚĆ - MOBILE
================================ */

@media (max-width: 768px) {
    /* Sidebar zmienia się w menu poziome */
    .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; /* ukrycie nagłówka */
    }

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

    /* Main content zajmuje całą szerokość */
    .main {
        margin-left: 0;
        padding: 15px;
        min-height: 100vh; /* still required */
    }

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

    /* Tekst w blokach */
    .summary {
        max-width: 90%;
        padding: 8px;
    }

    /* Przyciski społecznościowe */
    .button-link {
        padding: 16px 36px;
        font-size: 16px;
    }

    .socials {
        margin: 30px 0;
    }
}
