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

html {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--Platonic);
    min-height: 100vh;
}

:root {
    --Platonic: #F5F5F5;
    --Napisy: #171940;
    --Niebieski: #3B82F6;
    --NiebieskiHover: #3a72cc;
    --CiemnyNeibieski: #171940;
    --JasnyNiebieski: #5E93F0;
    --Fioletowy: #7471D9;
    --FioletowyHover: #5f5cbd;
    --CiemnyFioletowy1: #3A2390;
    --CiemnyFioletowy2: #3E0C60;
    --SzaryTeskt: #303030;
    --JasnySzary: #A9A9A9;
    --JasnyBiały: #F8F8F8;
    --JasnoSzaryTekst: #5b5b5b;
}

.clear {
    clear: both;
}

/* Nav settings */

/* --- Główny kontener nawigacji --- */
.mainnavigation {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    z-index: 999999;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Klasa dodawana prawdopodobnie przez JS przy scrollowaniu */
.mainnavigation.scroll-nav {
    background-color: var(--Platonic);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(116, 113, 217, 0.2);
}

.navigation-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1920px;
}

/* --- Logo (obrazek) --- */
.mainimagesplatonic {
    margin-left: 22px;
    transition: transform 0.3s ease;
}

.mainimagesplatonic:hover {
    transform: rotate(-5deg) scale(1.05);
}

.mainplatonictitle-link {
    padding-left: 7px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 48px;
    display: flex;
    align-items: center;
    color: var(--Napisy);
    text-decoration: none;
}

/* --- Responsywność (Media Queries) --- */
@media (max-width: 1300px) {
    .mainplatonictitle-link {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .mainimagesplatonic {
        margin-left: 15px;
    }

    .mainplatonictitle-link {
        font-size: 26px;
        padding-left: 5px;
    }
}

/* Main section */

.fixed-fix {
    width: 100%;
    height: 90px;
}

.container-info {
    display: flex;
    justify-content: center;
}

.main-section {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.main-section header {
    display: flex;
    justify-content: center;
}

.main-title {
    margin-top: 25px;
    margin-bottom: 40px;

    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    display: flex;
    align-items: center;
    text-align: center;

    color: var(--Napisy);
}

.sub-info-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
}

.sub-main-title {
    color: var(--Napisy);
    font-family: 'Inter';
    font-style: normal;
}

.sub-main-title-date {
    color: var(--Napisy);
    font-family: 'Inter';
    font-style: normal;
}

#info-main-header {
    display: flex;
    justify-content: center;
}

.info-chapter {
    margin-bottom: 60px;
}

.info-header {
    margin-bottom: 20px;
}

.info-header h2 {
    color:  var(--Napisy);
}

.info-content > ul > li {
    margin-bottom: 10px;
}

.info-ul {
    margin-top: 20px;
    margin-left: 20px;
}

.info-ol {
    counter-reset: li-counter;
    list-style: none;
    padding-left: 0;
}

.info-li {
    position: relative;
    padding-left: 3.5em; /* Zwiększenie paddingu, aby było miejsce na numer artykułu i podpunktu */
    
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    
    color: var(--Napisy);
}

.info-li::before {
    counter-increment: li-counter;
    content: attr(data-article-number) "." counter(li-counter);
    position: absolute;
    left: 0;
}

.golden-glitter {
    background: linear-gradient(
        90deg,
        #8B6000 0%,
        #C8900A 15%,
        #F5C518 30%,
        #E8A000 45%,
        #9A6800 55%,
        #D4A017 70%,
        #C8900A 80%,
        #8B6000 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitter-shine 2.5s linear infinite;
    font-weight: bold;
}

@keyframes glitter-shine {
    0%   { background-position: 200% center; }
    100% { background-position: 0% center; }
}

.mlg-glitter {
    background: linear-gradient(
        90deg,
        #FF0000 0%,   /* Czerwony (Hitmarker) */
        #FF8C00 15%,  /* Pomarańczowy (Doritos) */
        #FFFF00 30%,  /* Żółty */
        #00FF00 45%,  /* Zielony (Mountain Dew) */
        #00FFFF 60%,  /* Cyjan */
        #0000FF 75%,  /* Niebieski */
        #FF00FF 85%,  /* Różowy/Magenta */
        #FF0000 100%  /* Powrót do czerwonego dla płynnej pętli */
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Przyspieszona animacja (1.5s) dla agresywnego, gamingowego błysku RGB */
    animation: mlg-shine 1.5s linear infinite;
    font-weight: bold;
}

@keyframes mlg-shine {
    0%   { background-position: 200% center; }
    100% { background-position: 0% center; }
}

/* Dodatkowe style dla list zagnieżdżonych */
.extra-list {
    counter-reset: sub-li-counter; /* Resetowanie licznika dla zagnieżdżonej listy */
    list-style: none;
    padding-left: 0;
    margin-left: 2em; /* Zwiększenie marginesu dla list zagnieżdżonych */
}

.extra-list > .info-li {
    position: relative;
    padding-left: 4.5em; /* Zwiększenie paddingu dla zagnieżdżonych list */
}

.extra-list > .info-li::before {
    counter-increment: sub-li-counter; /* Inkrementowanie licznika dla zagnieżdżonej listy */
    content: attr(data-article-number) "." counter(li-counter) "." counter(sub-li-counter);
    position: absolute;
    left: 0;
}

.extra-list .extra-list {
    counter-reset: sub-sub-li-counter;
    margin-left: 2em;
}

.extra-list .extra-list > .info-li {
    padding-left: 5.5em;
}

.extra-list .extra-list > .info-li::before {
    counter-increment: sub-sub-li-counter; /* Inkrementowanie licznika dla głębiej zagnieżdżonej listy */
    content: attr(data-article-number) "." counter(li-counter) "." counter(sub-li-counter) "." counter(sub-sub-li-counter);
}

.justify-left header {
    display: flex;
    justify-content: start;
}