/*
 * [miniPHP]
 * Szablon graficzny Dark - Poprawiony mobilnie
 *
 * Zachowane identyfikatory używane przez system:
 * #kontener
 * #header
 * #menu
 * #kolumna1
 * #kolumna2
 * #footer
 * #footercol1
 * #footercol2
 */


/* =========================================================
   Ustawienia podstawowe
   ========================================================= */

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 1rem;
    background: #949494; /* Ciemne tło */
    color: #3e3e3e;     /* Jasny tekst */

    font-family:
        Tahoma,
        Verdana,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================================
   Główny kontener
   ========================================================= */

#kontener {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    background: #949494; /* Ciemne tło kontenera */
}


/* =========================================================
   Nagłówek
   ========================================================= */

#header {
    padding: 1rem;
    background-image: url('../../img/1background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

#header img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

#header h1 {
    margin: 0.75rem 0 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

/* =========================================================
   Menu
   ========================================================= */

#menu {
    margin: 0 0 1rem;
    padding: 0;
    border-bottom: 2px solid #ffffff;
}

#menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;

    margin: 0;
    padding: 0;
}

#menu li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu li a {
    display: block;
    min-width: 180px;
    padding: 0.55rem 1.25rem;

    background: #525252;
    color: #ffffff;

    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

#menu li a:hover,
#menu li a:focus {
    background: #a0a0a0 url('o.png') no-repeat center left;
    color: #525252;
}

#menu li a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* =========================================================
   Dwie główne kolumny
   ========================================================= */

#kolumny {
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
}


/* =========================================================
   Lewa kolumna
   ========================================================= */

#kolumna1 {
    padding: 1rem;
}


/* =========================================================
   Prawa kolumna
   ========================================================= */

#kolumna2 {
    min-width: 0;
    padding: 1rem;
}


/* =========================================================
   Nagłówki kolumn
   ========================================================= */

#kolumna1 h2,
#kolumna2 h2 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.3;
}


/* =========================================================
   Treść
   ========================================================= */

.tresc {
    overflow-wrap: break-word;
}

.tresc img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   Linki
   ========================================================= */

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

a:hover {
    color: #ff5b07;
}


/* =========================================================
   Stopka
   ========================================================= */

#footer {
    margin-top: 1.5rem;
    padding: 1rem;
    border-top: 1px solid #444;
    background: #949494;

    font-style: italic;
    text-align: center;
}

.footer-main {
    margin-bottom: 1rem;
}

.footer-main img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   Linki walidacyjne
   ========================================================= */

.footer-validation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

#footercol1,
#footercol2 {
    width: auto;
    padding: 0;
}

#footercol1 img,
#footercol2 img {
    display: block;
}


/* =========================================================
   Reklama
   ========================================================= */

#kontener > ins,
#kontener > iframe {
    max-width: 100%;
}


/* =========================================================
   Informacja o cookies
   ========================================================= */

#cookie-notice {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.cookie-notice-content {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 650px;
    padding: 20px 25px;
    background: #2d2d2d;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

.cookie-notice-content p {
    margin: 0;
    line-height: 1.5;
}

#cookie-ok {
    flex-shrink: 0;
    padding: 8px 25px;
    border: 1px solid #555;
    background: #4a5a6a;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

#cookie-ok:hover {
    background: #ff5b07;
    color: #000;
}


/* =========================================================
   Telefony i małe ekrany (RWD)
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 0.5rem;
    }

    #kolumny {
        grid-template-columns: 1fr !important; /* Wymuszenie jednej kolumny */
    }

    #kolumna1,
    #kolumna2 {
        padding: 0.75rem;
    }

    #menu ul {
        display: block;
    }

    #menu li {
        width: 100%;
    }

    #menu li a {
        width: 100% !important;
        min-width: 0 !important;
    }

    #header h1 {
        font-size: 1.3rem;
    }

    #header img {
        min-height: 0 !important; /* Całkowite zresetowanie minimalnej wysokości na mobile */
    }

    .footer-validation {
        gap: 1rem;
    }
}


/* =========================================================
   Bardzo małe ekrany
   ========================================================= */

@media (max-width: 400px) {

    body {
        padding: 0.25rem;
    }

    #header,
    #kolumna1,
    #kolumna2,
    #footer {
        padding: 0.5rem;
    }

    .footer-validation {
        flex-direction: column;
        align-items: center;
    }
}


/* =========================================================
   Preferencja użytkownika: ograniczenie animacji
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #menu li a {
        transition: none;
    }
}
