/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* TYLKO STRONA GŁÓWNA: obrazek mały, po prawej */
.blog .post-image img, 
.archive .post-image img {
    max-width: 250px !important;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

/* TYLKO WE WPISIE: obrazek normalny, na całą szerokość */
.single .featured-image img {
    max-width: 100% !important;
    float: none;
    margin: 0 auto 20px auto;
    display: block;
}

/* Poprawka dla telefonów - obrazek na 100% i tekst pod spodem */
@media (max-width: 768px) {
    .blog .post-image img, 
    .archive .post-image img,
    .post-image,
    .featured-image img {
        float: none !important; /* Wyłącza pchanie do boku */
        display: block !important;
        width: 100% !important; /* Obrazek na całą szerokość */
        max-width: 100% !important;
        margin: 0 auto 15px auto !important; /* Centrowanie i odstęp od tekstu */
        clear: both !important; /* Wymusza, by tekst spadł niżej */
    }
    
    /* Usuwa ewentualne marginesy boczne, które mogłyby psuć układ */
    .post-image {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* --- FINALE POPRAWKA NAGŁÓWKA NA MOBILCE --- */
@media (max-width: 768px) {
    /* 1. Ukrywamy opis strony */
    .site-description {
        display: none !important;
    }

    /* 2. Układ logo i hamburger w jednej linii */
    .inside-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 5px 15px !important; /* Mniejszy padding góra/dół */
    }

    /* 3. ZMNIEJSZENIE LOGO O POŁOWĘ */
    .site-logo, .site-logo img {
        max-width: 80px !important; /* Zmniejszone, by nie dominowało */
        height: auto !important;
    }

    /* 4. HAMBURGER: Przezroczyste tło i kolor ikony */
    .main-navigation button.menu-toggle {
        background-color: transparent !important; /* Usuwa tło */
        color: #333 !important; /* Tutaj ustaw kolor kresek hamburgera (np. ciemnoszary) */
        box-shadow: none !important; /* Usuwa ewentualne cienie */
        border: none !important; /* Usuwa ramkę */
        padding: 10px !important;
    }

    /* Opcjonalnie: kolor hamburgera po kliknięciu/najechaniu */
    .main-navigation button.menu-toggle:hover,
    .main-navigation button.menu-toggle:focus {
        background-color: transparent !important;
        color: #000 !important;
    }
}


/* OSTATECZNA NAPRAWA TYTUŁÓW NA MOBILCE (SG + WPISY) */
@media (max-width: 768px) {
    /* Uderzamy we wszystko co może być tytułem wpisu */
    h1.entry-title, 
    h2.entry-title, 
    h2.entry-title a, 
    h1.entry-title a,
    .entry-header h2 a {
        font-size: 24px !important; /* Jeszcze mniejszy, żeby na 100% poczuć różnicę */
        line-height: 1.2 !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        display: block !important; /* Wymusza odświeżenie stylu */
    }
}

/* ZMNIEJSZENIE DATY I AUTORA NA MOBILCE */
@media (max-width: 768px) {
    .entry-meta, 
    .entry-meta a, 
    .entry-meta span {
        font-size: 11px !important; /* Mały, techniczny druk */
        text-transform: uppercase; /* Opcjonalnie: nada im bardziej profesjonalny sznyt */
        letter-spacing: 0.5px;
        color: #888 !important; /* Delikatny szary, żeby nie odciągać uwagi od tytułu */
        margin-top: 2px !important;
        margin-bottom: 10px !important;
    }

    /* Usunięcie zbędnych odstępów pod metadanymi */
    .entry-header {
        margin-bottom: 10px !important;
    }
}

/* WŁASNY PODPIS W STOPCE */
.site-info {
    font-size: 0 !important; /* Ukrywa oryginalny tekst GeneratePress */
}

.site-info::before {
    content: "© 2026 40 latek z ADHD • Strona wykonana przez ADHD-owca"; 
    font-size: 13px !important; /* Przywraca widoczność Twojego tekstu */
    display: block;
    color: #888; /* Delikatny szary, żeby pasował do reszty strony */
    padding: 10px 0;
}

.site-info a {
    display: none !important; /* Ukrywa link do GeneratePress */
}
