/* --- FUNDAMENT --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif !important; background: #305d58; color: #FFF; min-height: 100vh; display: flex; flex-direction: column; }

/* BLOKADA SCROLLA TYLKO NA GŁÓWNEJ */
body.strona-glowna { overflow: hidden; }
body:not(.strona-glowna) { overflow-y: auto; }

/* NAGŁÓWEK - WYRÓWNANIE BMW */
header { background: #305d58; min-height: 55px; display: flex; justify-content: center; align-items: center; z-index: 1000; }
.header-wrapper { width: 95%; max-width: 1400px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.7rem; font-weight: 700; white-space: nowrap; }
nav ul { display: flex; list-style: none; gap: 15px; }
nav ul li a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; padding: 5px 2px; }
nav ul li:last-child a { padding-right: 12px; } /* Miejsce na "ę" */

/* --- STRONA GŁÓWNA (KOMPUTER) --- */
.home-content { 
    background-color: #cfcfb9; padding: 15px 35px; margin: 10px auto; 
    width: 98%; max-width: 98%; border-radius: 25px; text-align: center; color: #305d58; 
}
.home-text { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.highlight { font-size: 2.4rem; font-weight: 700; display: block; margin-top: 5px; }
.mobile-only { display: none; }
.desktop-only { 
    display: block; margin: 8px auto; border-radius: 15px; 
    max-height: calc(100vh - 230px); width: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}

/* --- PODSTRONY (REMONCIE ARMAGEDONU) --- */
.container { width: 100%; max-width: 1400px; margin: 0 auto; flex: none; padding: 20px; }
body[class*="podstrona-"]:not(.podstrona-o_nas):not(.podstrona-do_posluchania):not(.podstrona-qa) article p { text-align: justify; font-size: 20px; line-height: 1.6; }
a, a span { color: #fffb17 !important; text-decoration: underline; }

/* O NAS (Komputer) */
body.podstrona-o_nas article p { text-align: center; font-size: 20px; }
@media (min-width: 1211px) {
    .o-nas-flex { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 25px; }
    .o-nas-flex img { width: 45%; border-radius: 20px; }
    .o-nas-side-text { width: 55%; text-align: center; font-size: 20px; font-weight: 500; }
}

/* SPOTKANIA (Komputer) */
.spotkania-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(600px, 1fr)); gap: 30px; }
.spotkanie { background: #2d504b; padding: 30px; border-radius: 20px; text-align: center; }
.spotkanie iframe { width: 100%; height: 350px; border-radius: 15px; margin: 20px 0; border: none; }

/* Q&A */
body.podstrona-qa article h2, body.podstrona-qa article h3 { text-align: center; margin: 30px 0 15px 0; }
body.podstrona-qa article p { text-align: justify; }

/* DO POSŁUCHANIA */
body.podstrona-do_posluchania { background: url('img/gitarzysta.png') no-repeat center center fixed; background-size: cover; }
body.podstrona-do_posluchania article { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); padding: 40px; border-radius: 30px; text-align: center; margin: 20px auto; max-width: 900px; }
.fragment { display: none; }
.fragment.active { display: block; animation: fadeIn 0.8s; font-size: 1.4rem; }

/* --- WIDOK MOBILNY (TELEFON - 18px, srodek) --- */
@media (max-width: 1210px) {
    body { overflow-y: auto !important; }
    body[class*="podstrona-"] article p { text-align: center !important; font-size: 18px !important; }
    body.podstrona-o_nas article p, body.podstrona-do_posluchania article p, body.podstrona-qa article h2 { text-align: center !important; }

    /* Strona główna telefon */
    .home-content { width: 99%; padding: 4px 3px; border-radius: 15px; margin-top: 50px; }
    .home-text { font-size: 1.25rem; font-weight: 600; }
    .highlight { font-size: 1.85rem; font-weight: 700; }
    .mobile-only { display: block !important; width: 99%; margin: 6px auto 4px auto; border-radius: 15px; }
    .desktop-only { display: none !important; }

    /* Menu mobilne */
    .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .burger span { width: 30px; height: 3px; background: #fff; }
    nav { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: #305d58; padding: 25px; z-index: 1000; }
    nav.active { display: block; }
    nav ul { flex-direction: column; align-items: center; gap: 20px; }
    .spotkania-grid { grid-template-columns: 1fr; }
    .spotkanie iframe { height: 250px; }
}

/* --- STOPKA --- */
.footer { background: #305d58; text-align: center; padding: 15px 0; margin-top: 60px; width: 100%; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
#scrollTopBtn { display: none; position: fixed; bottom: 20px; right: 20px; background: #305d58; border: 2px solid #fff; border-radius: 50%; width: 50px; height: 50px; z-index: 1001; }
/* --- POPRAWKA: SZEROKOŚĆ PODSTRON I KOLORY LINKÓW --- */

/* 1. Rozciągnięcie podstron, żeby nie były za wąskie */
.container {
    width: 98% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
}

article {
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Kolory linków: Menu BIAŁE, reszta ŻÓŁTA */
nav ul li a {
    color: #fff !important;
    text-decoration: none !important;
}

article a, .container a, .spotkanie a, .przypis a {
    color: #fffb17 !important;
    text-decoration: underline !important;
}

/* 3. Naprawa strzałki do góry (żeby nie była gigantem) */
#scrollTopBtn {
    width: 50px !important;
    height: 50px !important;
    padding: 10px !important;
}

#scrollTopBtn img {
    width: 100% !important;
    height: auto !important;
}

/* 4. Wyciągnięcie stopki na komputerze i telefonie */
.footer {
    min-height: 40px !important;
    padding: 15px 0 !important;
    position: relative !important; /* Odpinamy od absolute, by była pod treścią */
    clear: both !important;
    display: block !important;
}

/* 5. Poprawka dla telefonu i SZEROKOŚĆ - wersja ostateczna */
@media (max-width: 1210px) {
    /* Blokujemy oddalanie strony */
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
body.strona-glowna .container { flex: none !important; }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
    }

article p, article h2, article h3, article figcaption, .przypis, .polowa {
        font-size: 18px !important;
        width: 100% !important;
        text-align: center !important;
        line-height: 1.4 !important;    }

    /* Naprawa obrazków na podstronach (żeby nie puchły) */
    article img, article figure {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Strona Główna: Powiększenie obrazka i STOPKA */
    body.strona-glowna .mobile-only {
        width: 96% !important;
        max-width: 96% !important;
        margin: 15px auto !important;
    }

    body.strona-glowna .footer {
        display: block !important;
        margin-top: 0px !important;
        padding: 10px 0 !important;
    }

/* 1. Tło z gitarzystą */
body.podstrona-do_posluchania {
    background: url('img/gitarzysta.png') no-repeat center center fixed !important;
    background-size: cover !important;
}

/* 2. Ciemne pola tekstowe - Przezroczystość i szerokość */
.gitarzysta article {
    background: rgba(0, 0, 0, 0.3) !important; /* Mała nieprzezroczystość (30%), obraz będzie prześwitywać */
    backdrop-filter: blur(8px);
    padding: 30px 15px !important;
    border-radius: 20px !important;
    
    /* Szerokość: margines 6px od krawędzi ramki (łącznie 12px) */
    width: calc(100% - 12px) !important; 
    max-width: 900px !important;
    margin: 20px auto !important;
}

/* 3. Pasek audio - Wydłużony, margines 6px od ciemnej ramki */
.gitarzysta audio {
    display: block !important;
    margin: 10px auto !important;
    
    /* Szerokość paska: wypełnia ciemne pole minus 6px z każdej strony */
    width: calc(100% - 12px) !important; 
    max-width: 800px !important; /* Zwiększyłem limit długości paska */
}

/* 4. Teksty piosenek */
.fragment.active { 
    display: block !important; 
    animation: fadeIn 0.8s; 
    font-size: 1.3rem; 
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4); /* Cień pod tekstem dla czytelności na tle obrazka */
}