/*
Theme Name: Blog o Ksiazkach
Theme URI: https://example.com
Author: Katarzyna Jasiołek
Author URI: https://example.com
Description: Prosty motyw WordPress dla bloga o książkach, oparty na projekcie strona.html.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: blog-o-ksiazkach
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

a {
    color: #2d5fa7;
}

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

/* ===== Header / banner ===== */
.site-header {
    position: relative;
    height: 350px;
    background-color: #222;
    background-size: cover;
    background-position: center;
}

.site-header .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-header h1 {
    color: white;
    font-size: 3rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.site-header .site-description {
    color: #f0f0f0;
    margin-top: 10px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ===== Nawigacja ===== */
.main-navigation {
    background: #1f1f1f;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 14px 22px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: #2d5fa7;
}

.menu-toggle {
    display: none;
}

@media (max-width: 700px) {
    .main-navigation ul {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: #1f1f1f;
        color: #fff;
        border: none;
        font-weight: 600;
        text-align: left;
    }

    .main-navigation ul {
        display: none;
    }

    .main-navigation.toggled ul {
        display: flex;
    }
}

/* ===== Główna treść ===== */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.book-post {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.book-post img {
    width: 140px;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.post-content h2 {
    margin-top: 0;
    color: #222;
}

.post-content h2 a {
    color: inherit;
    text-decoration: none;
}

.post-content h2 a:hover {
    text-decoration: underline;
}

.post-content p {
    margin-bottom: 0;
}

.publication-date {
    color: #777;
    font-size: 0.9rem;
    margin: 4px 0 10px;
}

.book-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    text-decoration: none;
}

.book-link:hover {
    text-decoration: underline;
}

/* Pojedynczy post / strona */
.single-post-content,
.page-content {
    max-width: 700px;
    margin: 0 auto;
}

.single-post-title {
    margin: 0 0 30px;
    color: #222;
}

.single-post-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.single-post-side {
    flex-shrink: 0;
    width: 140px;
}

.publication-date.extra-date {
    margin-top: 4px;
}

.single-post-thumbnail img {
    width: 140px;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 15px;
}

.single-post-content .entry-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 700px) {
    .single-post-body {
        flex-direction: column;
    }

    .single-post-side {
        width: 100%;
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .single-post-thumbnail img {
        width: 100px;
        height: auto;
        margin-bottom: 0;
    }
}

/* Archiwum kategorii */
.archive-title {
    text-align: center;
    color: #222;
    margin-bottom: 10px;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    color: #555;
}

/* Paginacja */
.pagination {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

/* ===== Stopka ===== */
footer.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h3 {
    margin-top: 0;
    color: #222;
}

.footer-content p {
    color: #555;
    margin: 8px 0;
}

.footer-content a {
    color: #2d5fa7;
    text-decoration: none;
    font-weight: 600;
}

.footer-content a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .book-post {
        flex-direction: column;
    }

    .book-post img {
        width: 200px;
        height: auto;
    }

    .site-header h1 {
        font-size: 2rem;
        text-align: center;
        padding: 0 20px;
    }
}
