/*
Theme Name: SolidnyFundament
Theme URI: https://solidnyfundament.pl/
Description: Nowoczesny, minimalistyczny i zoptymalizowany pod SEO szablon WordPress. Lekki, responsywny, zgodny z PageSpeed.
Version: 1.0.0
Author: solidnyfundament.pl
Author URI: https://solidnyfundament.pl/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scandishop
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ----------------------------------------------------
   1. ZMIENNE CSS & MOTYW PRZEWODNI (STYL SKANDYNAWSKI)
   ---------------------------------------------------- */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F6F5F2;
    --color-text: #1A1A1A;
    --color-muted: #6C6C6C;
    --color-border: #E5E2DC;
    --color-accent: #1A1A1A; /* Kolor bazowy/akcentowy dla spójności elementów */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-handwritten: 'Alex Brush', cursive;
    --max-width: 1200px;
    --transition-smooth: all 0.25s ease-in-out;
}

/* ----------------------------------------------------
   2. RESET & BAZA
   ---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: var(--body-font-size, 14px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-muted);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: var(--headings-font-weight, 300);
    line-height: 1.25;
}

h1 { font-size: var(--h1-font-size, 36px); }
h2 { font-size: var(--h2-font-size, 26px); }
h3 { font-size: var(--h3-font-size, 22px); }
h4 { font-size: var(--h4-font-size, 18px); }

/* Przycisk odnośnika z strzałką */
.btn-link-arrow {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    border: none;
    background: none;
    padding: 0 0 2px;
}

.btn-link-arrow:hover {
    color: var(--color-muted);
}

/* Przycisk w ramce */
.btn-outline-box {
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1px solid var(--color-text);
    background-color: transparent;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-outline-box:hover {
    background-color: var(--color-text);
    color: #FFFFFF;
}

/* Ghost button */
.btn-ghost {
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--color-text);
    background-color: transparent;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-ghost:hover {
    background-color: var(--color-text);
    color: #FFFFFF;
}

/* Czarny przycisk */
.btn-solid-black {
    font-family: var(--font-primary);
    background-color: var(--color-text);
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 14px 24px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-solid-black:hover {
    background-color: #333333;
}

/* Przycisk "Czytaj" */
.btn-more {
    font-family: var(--font-primary);
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}

.btn-more:hover {
    color: var(--color-muted);
    border-color: var(--color-muted);
}

/* Section title */
.section-title {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* ----------------------------------------------------
   3. STRUKTURA I NAGŁÓWEK (HEADER)
   ---------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background-color: var(--bg-primary);
    padding: 25px 0 15px;
}

.header-top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
}

/* Social media po lewej */
.header-socials {
    display: flex;
    gap: 15px;
    font-size: 15px;
    color: var(--color-text);
}

.header-socials a {
    color: var(--color-text);
}

.header-socials a:hover {
    color: var(--color-muted);
}

/* Logo brandu (wyśrodkowane) */
.site-logo {
    text-align: center;
}

.site-logo a {
    font-family: var(--font-serif);
    font-size: var(--logo-font-size, 38px);
    font-weight: var(--logo-font-weight, 400);
    color: var(--color-text);
    letter-spacing: -0.5px;
}

/* Szukaj po prawej */
.header-search {
    display: flex;
    justify-content: flex-end;
}

.header-search-link {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 4px;
}

/* Dolna belka z nawigacją */
.header-navigation-bar {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
}

.menu-toggle i {
    font-size: 18px;
}

.main-navigation {
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-navigation ul,
.main-navigation .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
    display: inline-block;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    color: var(--color-muted);
}

/* Wskaźnik rozwijania (dropdown indicator) dla elementów z podmenu */
.main-navigation li.menu-item-has-children > a::after {
    content: " \25be";
    font-size: 9px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.2s ease;
}

.main-navigation li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Stylizacja podmenu (dropdown) na komputerach (desktop) */
@media (min-width: 1025px) {
    /* Zapobieganie pojawianiu się pasków przewijania przy najechaniu na podmenu */
    .site-header,
    .site-header .container,
    .header-navigation-bar,
    .main-navigation {
        overflow: visible !important;
    }

    .main-navigation ul,
    .main-navigation .menu {
        flex-wrap: nowrap !important;
    }

    .main-navigation li {
        position: relative;
    }

    .main-navigation ul ul,
    .main-navigation .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--bg-primary, #ffffff);
        border: 1px solid var(--color-border, #e5e2dc);
        padding: 15px 20px;
        min-width: 200px;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        margin: 0;
        list-style: none;
    }

    .main-navigation li:hover > ul,
    .main-navigation li:focus-within > ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .main-navigation ul ul a,
    .main-navigation .sub-menu a {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--color-text);
        white-space: nowrap;
        display: block;
        transition: color 0.2s ease;
        text-align: center;
    }

    .main-navigation ul ul a:hover,
    .main-navigation .sub-menu a:hover {
        color: var(--color-muted) !important;
    }
}

/* Stylizacja podmenu (dropdown) na urządzeniach mobilnych */
@media (max-width: 1024px) {
    .main-navigation ul ul,
    .main-navigation .sub-menu {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 8px 0 0 0;
        min-width: auto;
        background-color: transparent;
        list-style: none;
        margin: 0;
    }

    .main-navigation ul ul li,
    .main-navigation .sub-menu li {
        margin: 5px 0;
    }

    .main-navigation ul ul a,
    .main-navigation .sub-menu a {
        font-size: 9px;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
    }
}

/* Overlay wyszukiwarki */
.search-overlay {
    display: none;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.search-overlay.active {
    display: block;
}

.search-form-overlay {
    display: flex;
    gap: 10px;
}

.search-form-overlay .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    font-family: var(--font-primary);
    font-size: 13px;
    background-color: var(--bg-primary);
    color: var(--color-text);
    outline: none;
}

.search-form-overlay .search-field:focus {
    border-color: var(--color-text);
}

/* Okruszki chleba */
.breadcrumbs {
    padding: 15px 0;
    font-family: var(--font-primary);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 35px;
}

.breadcrumbs a {
    color: var(--color-muted);
}

.breadcrumbs a:hover {
    color: var(--color-text);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: var(--color-border);
}

.breadcrumbs .current {
    color: var(--color-text);
}

/* ----------------------------------------------------
   4. STRONA GŁÓWNA
   ---------------------------------------------------- */

/* 4.1. Hero Banner */
.hero-banner-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 16/7;
    display: flex;
    align-items: center;
    margin: 30px 0 60px;
    position: relative;
}

.hero-banner-content {
    background: rgba(255, 255, 255, 0.92);
    padding: 50px 45px;
    max-width: 480px;
    margin-left: 60px;
    z-index: 2;
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}

.hero-banner-tagline {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 15px;
    display: block;
}

.hero-banner-title {
    font-size: var(--hero-title-size, 56px);
    font-weight: var(--hero-title-weight, 300);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-banner-desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 35px;
}

/* 4.2. Pasek statystyk */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 80px;
    padding: 30px 0;
}

.stats-item {
    text-align: center;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-item:last-child {
    border-right: none;
}

.stats-label-top {
    font-family: var(--font-serif);
    font-size: 36px;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--color-text);
}

.stats-label-bottom {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* 4.3. Artykuł Tygodnia */
.weekly-post-section {
    margin-bottom: 80px;
}

.weekly-post-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.weekly-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.weekly-middle-card {
    background-color: var(--bg-secondary);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.weekly-card-label {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 15px;
}

.weekly-card-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.25;
}

.weekly-card-title a {
    color: var(--color-text);
}

.weekly-card-title a:hover {
    color: var(--color-muted);
}

.weekly-card-excerpt {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 35px;
    line-height: 1.7;
}

.weekly-right-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-post-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
}

.side-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-post-num {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-text);
    font-weight: 300;
}

.side-post-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.side-post-thumb {
    flex-shrink: 0;
}

.side-post-thumb img {
    width: 55px;
    height: 55px;
    object-fit: cover;
}

.side-post-title {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.side-post-title a {
    color: var(--color-text);
}

.side-post-title a:hover {
    color: var(--color-muted);
}

/* 4.4. Odkrywaj według tematów */
.categories-grid-section {
    margin-bottom: 80px;
    border-top: 1px solid var(--color-border);
    padding-top: 50px;
}

.categories-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.categories-section-title-wrap h2 {
    font-family: var(--font-serif);
    font-size: var(--home-section-title-size, 20px);
    font-weight: var(--home-section-title-weight, 600);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.categories-section-title-wrap .title-line {
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: var(--transition-smooth);
}

.category-card:hover::before {
    background-color: rgba(0, 0, 0, 0.55);
}

.category-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.category-card-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-icon i {
    font-size: 16px;
    color: #FFFFFF;
}

.category-card-title {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.category-card:hover img {
    transform: scale(1.05);
}

/* 4.5. O Mnie */
.homepage-about-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.about-left-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-center-bio {
    padding: 0 15px;
}

.about-center-bio h2 {
    font-size: var(--home-section-title-xlarge-size, 42px);
    font-weight: var(--home-section-title-xlarge-weight, 300);
    margin-bottom: 20px;
}

.about-center-bio p {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Odręczny cytat */
.about-right-quote-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
}

.handwritten-quote {
    font-family: var(--font-handwritten);
    font-size: 32px;
    line-height: 1.25;
    color: var(--color-text);
}

.about-right-quote-card .author-signature {
    font-family: var(--font-handwritten);
    font-size: 36px;
    margin-top: 15px;
    color: var(--color-text);
}

/* 4.6. Najpopularniejsze wpisy */
.popular-section-home {
    background-color: var(--bg-primary);
    padding: 40px 0 80px;
}

.popular-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.popular-header-row h2 {
    font-size: var(--home-section-title-large-size, 36px);
    font-weight: var(--home-section-title-large-weight, 300);
}

.popular-view-all {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.popular-view-all::after {
    content: '—';
    margin-left: 5px;
}

.popular-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.popular-card-home {
    display: flex;
    flex-direction: column;
}

.popular-card-num {
    font-family: var(--font-serif);
    font-size: 64px;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-border);
    line-height: 1;
    margin-bottom: 10px;
}

.popular-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 15px;
}

.popular-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.popular-card-image a:hover img {
    transform: scale(1.03);
}

.popular-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 10px;
}

.popular-card-title a {
    color: var(--color-text);
}

.popular-card-title a:hover {
    color: var(--color-muted);
}

/* 4.7. Najnowsze artykuły */
.latest-posts-home {
    margin-bottom: 80px;
}

.latest-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.latest-card-home {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-card-home .btn-more {
    margin-top: auto;
    align-self: flex-start;
}

.latest-card-image {
    aspect-ratio: 16/11;
    overflow: hidden;
    margin-bottom: 15px;
}

.latest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.latest-card-image a:hover img {
    transform: scale(1.03);
}

.latest-card-date {
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.latest-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 12px;
}

.latest-card-title a {
    color: var(--color-text);
}

.latest-card-title a:hover {
    color: var(--color-muted);
}

/* 4.8. Newsletter */
.club-scandi-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--color-border);
    margin-bottom: 80px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.club-scandi-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
}

.club-scandi-content h2 {
    font-size: var(--home-section-title-xlarge-size, 42px);
    font-weight: var(--home-section-title-xlarge-weight, 300);
    margin-bottom: 15px;
}

.club-scandi-desc {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.7;
}

.club-scandi-form {
    display: flex;
    gap: 0;
    max-width: 500px;
}

.club-scandi-form input[type="email"] {
    flex: 1;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-right: none;
    padding: 14px 20px;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--color-text);
    outline: none;
}

.club-scandi-form input[type="email"]:focus {
    border-color: var(--color-text);
}

.club-scandi-decoration {
    position: absolute;
    right: 60px;
    bottom: 0;
    top: 0;
    width: 280px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.club-scandi-decoration img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.newsletter-message {
    font-family: var(--font-primary);
    font-size: 13px;
    margin-top: 15px;
}

/* ----------------------------------------------------
   5. SINGLE POST & SIDEBAR
   ---------------------------------------------------- */
.post-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
    padding: 40px 0;
}

.post-layout-grid.no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.site-main {
    min-width: 0;
    overflow: hidden;
}

.post-breadcrumbs {
    font-family: var(--font-primary);
    font-size: 11px;
    color: var(--color-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.post-featured-image {
    margin-bottom: 30px;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.post-featured-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-header-meta {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-top: 10px;
    margin-bottom: 20px;
}

.post-header-meta a {
    color: var(--color-text);
    font-weight: 700;
}

.post-header-meta a:hover {
    color: var(--color-muted);
}

.post-title {
    font-size: var(--post-title-size, 36px);
    font-weight: var(--post-title-weight, 300);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* TOC Box */
.toc-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--color-border);
    padding: 24px;
    margin: 30px 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.toc-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.toc-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.toc-item-h2 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
}

.toc-item-h3 {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
    padding-left: 15px;
    color: var(--color-muted);
    width: 100%;
    max-width: 100%;
}

.toc-link {
    color: var(--color-text);
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.toc-link:hover {
    color: var(--color-muted);
}

/* Post Content */
.post-content blockquote {
    background-color: var(--quote-bg, var(--bg-secondary));
    border-left: 3px solid var(--quote-border, var(--color-accent));
    color: var(--quote-text-color, var(--color-text));
    padding: 30px;
    margin: 30px 0;
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
}

/* Post Content Lists with custom colored bullets */
.post-content ul li::marker,
.post-content ol li::marker {
    color: var(--list-marker-color, var(--color-accent));
}

/* Post Content Tables */
.post-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-primary);
    font-size: var(--table-font-size, 14px);
    line-height: var(--table-line-height, 1.5);
    text-align: left;
    margin: 0;
}

.post-content th {
    background-color: var(--table-header-bg, var(--bg-secondary));
    color: var(--table-header-text, var(--color-text));
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: var(--table-cell-padding-y, 12px) var(--table-cell-padding-x, 16px);
    border-bottom: 2px solid var(--table-border-color, var(--color-accent));
}

.post-content td {
    padding: var(--table-cell-padding-y, 12px) var(--table-cell-padding-x, 16px);
    border-bottom: 1px solid var(--table-border-color, var(--color-accent));
    color: var(--color-text);
}

.post-content tr:nth-child(even) {
    background-color: var(--table-zebra-bg, #FAF8F5);
}

.post-content tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Callout Boxes (Info, Warning, Tip) */
.post-content .callout-box {
    padding: 20px 24px;
    margin: 30px 0;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.6;
    background-color: var(--bg-secondary);
}

.post-content .callout-box.info {
    border-color: #2b6cb0;
    background-color: #ebf8ff;
    color: #2c5282;
}

.post-content .callout-box.warning {
    border-color: #dd6b20;
    background-color: #fffaf0;
    color: #9c4221;
}

.post-content .callout-box.tip {
    border-color: #38a169;
    background-color: #f0fff4;
    color: #276749;
}

.post-content h2 {
    font-size: 26px;
    margin: 40px 0 20px;
}

.post-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 24px;
    font-size: var(--post-body-size, 15px);
    font-weight: var(--post-body-weight, 400);
    line-height: 1.75;
    color: #2c2c2c;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px 20px;
    font-size: var(--post-body-size, 15px);
    font-weight: var(--post-body-weight, 400);
    line-height: 1.75;
    color: #2c2c2c;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content img {
    margin: 24px 0;
    border: 1px solid var(--color-border);
}

/* Post Content: overflow protection for all elements */
.post-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-content pre,
.post-content code {
    overflow-x: auto;
    max-width: 100%;
    word-break: break-all;
}

.post-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-content iframe,
.post-content embed,
.post-content video,
.post-content object {
    max-width: 100%;
    height: auto;
}

.post-content figure {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.post-content figure img {
    max-width: 100%;
    height: auto;
}

/* WordPress Block containment */
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.wp-block-image,
.wp-block-embed,
.wp-block-video,
.wp-block-cover,
.wp-block-gallery,
.wp-block-group,
.wp-block-columns {
    max-width: 100%;
}

.wp-block-image img,
.wp-block-image figure {
    max-width: 100%;
    height: auto;
}

.post-content a {
    color: var(--link-color, var(--color-accent));
    text-decoration: var(--link-underline, underline);
    font-weight: var(--link-font-weight, normal);
    transition: var(--transition-smooth);
}

.post-content a:hover {
    color: var(--link-hover-color, var(--color-muted));
    text-decoration: var(--link-hover-underline, underline);
}

/* Tags */
.post-tags-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.post-tags-label {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 10px;
}

.post-tags-container a {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.post-tags-container a:hover {
    background-color: var(--color-text);
    color: #FFFFFF;
}

/* Post Author Bio Box */
.post-author-bio-box {
    display: flex;
    gap: 25px;
    align-items: center;
    background-color: var(--author-box-bg, var(--bg-secondary));
    border-width: var(--author-box-border-width, 1px);
    border-color: var(--author-box-border-color, var(--color-border));
    border-style: var(--author-box-border-style, solid);
    border-radius: var(--author-box-border-radius, 0px);
    padding: var(--author-box-padding, 30px);
    margin: var(--author-box-margin, 40px) 0;
}

.post-author-bio-avatar {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #D6D3CD;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 65% 65%;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-radius: 4px;
}

.post-author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-bio-info {
    display: flex;
    flex-direction: column;
}

.post-author-bio-label {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.post-author-bio-name {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
}

.post-author-bio-name a {
    color: var(--color-text);
}

.post-author-bio-name a:hover {
    color: var(--color-muted);
}

.post-author-bio-desc {
    font-size: 13px;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

/* Prev / Next Navigation */
.post-navigation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.nav-post-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--color-border);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: var(--transition-smooth);
}

.nav-post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.nav-post-dir {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.nav-post-title {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* 5.1. Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
    overflow: hidden;
}

.sidebar .widget-title {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Widget: O mnie */
.widget_about_me {
    text-align: left;
}

.sidebar-avatar-rect {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    aspect-ratio: 1/1;
}

.sidebar-avatar-rect img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.sidebar-about-desc {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.sidebar .btn-read-more {
    display: inline-block;
    border: 1px solid var(--color-text);
    background-color: #FFFFFF;
    color: var(--color-text);
    padding: 8px 18px;
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.sidebar .btn-read-more:hover {
    background-color: var(--color-text);
    color: #FFFFFF;
}

/* Widget: Najpopularniejsze */
.widget_popular_posts .sidebar-popular-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.widget_popular_posts .sidebar-popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-popular-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.sidebar-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-popular-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-popular-title {
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
}

.sidebar-popular-title a {
    color: var(--color-text);
}

.sidebar-popular-title a:hover {
    color: var(--color-muted);
}

.sidebar-popular-date {
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Widget: Kategorie */
.widget_categories_list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories_list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}

.widget_categories_list li:last-child {
    border-bottom: none;
}

.widget_categories_list a {
    font-weight: 500;
    color: var(--color-text);
}

.widget_categories_list a:hover {
    color: var(--color-muted);
}

.widget_categories_list .cat-count {
    color: var(--color-muted);
}

/* Widget: Newsletter Sidebar */
.widget_sidebar_newsletter {
    position: relative;
    color: #FFFFFF;
    text-align: center;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.widget_sidebar_newsletter_bg {
    background-size: cover;
    background-position: center;
    padding: 60px 24px;
    position: relative;
}

.widget_sidebar_newsletter_bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.sidebar-newsletter-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sidebar-newsletter-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
}

.sidebar-newsletter-btn {
    display: inline-block;
    background-color: #FFFFFF;
    color: var(--color-text);
    padding: 10px 24px;
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.sidebar-newsletter-btn:hover {
    background-color: var(--color-text);
    color: #FFFFFF;
}

/* ----------------------------------------------------
   6. STRONA KATEGORII & FILTRY
   ---------------------------------------------------- */
.category-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
}

.category-hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
}

.category-hero-title {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-hero-desc {
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.category-hero-breadcrumbs {
    font-family: var(--font-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Panel filtrów */
.category-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background-color: transparent;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-smooth);
    color: var(--color-text);
    display: inline-block;
}

.filter-btn:hover {
    border-color: var(--color-text);
}

.filter-btn.active {
    background-color: var(--color-text);
    color: #FFFFFF;
    border-color: var(--color-text);
}

.filter-counter {
    font-size: 12px;
    color: var(--color-muted);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: var(--bg-secondary);
    margin-bottom: 15px;
}

.post-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.post-card-image img:hover {
    transform: scale(1.03);
}

.post-card-category {
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.post-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-card-title a {
    color: var(--color-text);
}

.post-card-title a:hover {
    color: var(--color-muted);
}

.post-card-date {
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Paginacja */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 60px;
}

.pagination a,
.pagination span {
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.pagination a:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.pagination .current {
    background-color: var(--color-text);
    color: #FFFFFF;
    border-color: var(--color-text);
}

/* ----------------------------------------------------
   7. STRONA AUTORA
   ---------------------------------------------------- */
.author-banner-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 60px;
}

.author-banner-label {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.author-banner-title {
    font-size: 40px;
    font-family: var(--font-serif);
    line-height: 1.25;
    margin: 15px 0 20px;
    font-weight: 400;
}

.author-banner-line {
    width: 40px;
    height: 1px;
    background-color: var(--color-text);
    margin-bottom: 25px;
}

.author-banner-desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 30px;
}

.author-signature-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-banner-content .author-signature {
    font-family: var(--font-handwritten);
    font-size: 44px;
    color: var(--color-text);
    line-height: 1;
}

.author-signature-heart {
    font-size: 24px;
    color: var(--color-text);
}

.author-banner-image {
    width: 100%;
    overflow: hidden;
}

.author-banner-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.author-body-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.author-bio-details .author-section-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--color-text);
}

.author-section-line {
    width: 30px;
    height: 1px;
    background-color: var(--color-text);
    margin-bottom: 20px;
}

.author-bio-details p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.author-right-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.author-stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.author-stat-item {
    border: 1px solid var(--color-border);
    padding: 20px 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-stat-num {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.author-stat-lbl {
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.author-decor-image {
    width: 100%;
    overflow: hidden;
}

.author-decor-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* Author posts section */
.author-posts-section {
    border-top: 1px solid var(--color-border);
    padding-top: 60px;
    margin-bottom: 80px;
}

.author-posts-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ----------------------------------------------------
   8. STOPKA
   ---------------------------------------------------- */
.site-footer {
    background-color: #FAF8F5;
    padding: 85px 0 45px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text);
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-about-text {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-social-icons {
    display: flex;
    gap: 18px;
}

.footer-social-icons a {
    color: var(--color-text);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.footer-social-icons a:hover {
    color: var(--color-muted);
}

.footer-col-title {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--color-muted);
    transition: var(--transition-smooth);
    font-size: 13px;
}

.footer-links-list a:hover {
    color: var(--color-text);
}

.footer-contact-text {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-contact-email {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.footer-contact-email:hover {
    color: var(--color-muted);
    border-color: var(--color-muted);
}

.footer-bottom-bar {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-muted);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-menu-list li {
    display: inline-block;
}

.footer-bottom-menu-list a {
    color: var(--color-muted);
    transition: var(--transition-smooth);
}

.footer-bottom-menu-list a:hover {
    color: var(--color-text);
}

.footer-credits strong {
    color: var(--color-text);
}

/* ----------------------------------------------------
   9. STRONA 404
   ---------------------------------------------------- */
.error-404-section {
    text-align: center;
    padding: 80px 0;
}

.error-404-section h1 {
    font-size: 120px;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--color-border);
}

.error-404-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-404-section p {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 30px;
}

.error-404-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: left;
}

/* ----------------------------------------------------
   10. KOMENTARZE
   ---------------------------------------------------- */
.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-date {
    font-family: var(--font-primary);
    font-size: 11px;
    color: var(--color-muted);
    margin-bottom: 12px;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #2c2c2c;
}

.comment-reply-link {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-top: 10px;
    display: inline-block;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-respond .comment-reply-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.comment-form label {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    display: block;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    font-family: var(--font-primary);
    font-size: 13px;
    background-color: var(--bg-primary);
    color: var(--color-text);
    margin-bottom: 20px;
    outline: none;
    transition: var(--transition-smooth);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-text);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background-color: var(--color-text);
    color: #FFFFFF;
    text-transform: uppercase;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.comment-form .submit:hover {
    background-color: #333333;
}

/* ----------------------------------------------------
   11. RESPONSYWNOŚĆ
   ---------------------------------------------------- */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .header-top-bar {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .header-socials,
    .header-search {
        justify-content: center;
    }

    .header-navigation-bar {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        width: 100%;
        text-align: center;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul,
    .main-navigation .menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0 10px;
        align-items: center;
    }

    .hero-banner-section {
        aspect-ratio: auto;
        min-height: 400px;
    }

    .hero-banner-content {
        margin-left: 15px;
        margin-right: 15px;
        padding: 25px 20px;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.88);
    }

    .hero-banner-title {
        font-size: 38px;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 15px;
    }

    .stats-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .weekly-post-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .homepage-about-section {
        grid-template-columns: 1fr 1.2fr;
    }

    .about-right-quote-card {
        grid-column: span 2;
        aspect-ratio: 2/1;
    }

    .popular-grid-home {
        grid-template-columns: 1fr;
    }

    .latest-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .club-scandi-grid {
        grid-template-columns: 1fr;
    }

    .club-scandi-decoration {
        display: none;
    }

    .post-layout-grid,
    .author-body-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-navigation-row {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-banner-section {
        grid-template-columns: 1fr;
    }

    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .hero-banner-title {
        font-size: 30px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .homepage-about-section {
        grid-template-columns: 1fr;
    }

    .about-right-quote-card {
        grid-column: span 1;
        aspect-ratio: auto;
        padding: 30px 20px;
    }

    .about-center-bio h2 {
        font-size: 32px;
    }

    .club-scandi-section {
        padding: 30px 20px;
    }

    .club-scandi-content h2 {
        font-size: 30px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-menu-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .post-author-bio-box {
        flex-direction: column;
        text-align: center;
    }

    .toc-container {
        padding: 16px;
        margin: 20px 0;
    }

    .error-404-grid {
        grid-template-columns: 1fr;
    }

    .error-404-section h1 {
        font-size: 80px;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    /* Post content mobile overflow protection */
    .post-layout-grid {
        gap: 30px;
        padding: 20px 0;
    }

    .post-content h2 {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    .post-content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    .post-content blockquote {
        padding: 20px 16px;
        margin: 20px 0;
        font-size: 16px;
    }

    .post-content .callout-box {
        padding: 16px;
        margin: 20px 0;
    }

    .post-title {
        font-size: 26px;
    }

    .nav-post-card {
        padding: 15px;
        gap: 10px;
    }

    .nav-post-thumb img {
        width: 50px;
        height: 50px;
    }
}

/* Small Mobile (≤ 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .latest-grid-home {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .author-posts-grid {
        grid-template-columns: 1fr;
    }

    .club-scandi-form {
        flex-direction: column;
        gap: 10px;
    }

    .club-scandi-form input[type="email"] {
        border-right: 1px solid var(--color-border);
    }

    .section-title {
        font-size: 28px;
    }

    .popular-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-banner-content {
        margin: 15px;
        padding: 20px 15px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-navigation-row {
        gap: 15px;
    }

    .post-featured-image img {
        aspect-ratio: 16/9;
    }

    .post-author-bio-box {
        padding: 20px;
    }
}

/* RWD Footer 4 kolumny (≤ 991px) */
@media (max-width: 991px) {
    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Alignments (WordPress) */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--color-muted);
    text-align: center;
    padding-top: 8px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pasek postępu czytania (Reading Progress) */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--progress-bar-color, var(--color-accent));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Przycisk powrotu do góry (Back to Top) */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 45px;
    height: 45px;
    background-color: var(--back-to-top-color, var(--color-accent));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all 0.3s ease-in-out;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-muted);
    color: #FFFFFF;
    transform: translateY(-5px);
}

/* ====================================================
   12. MOBILNE POPRAWKI LAYOUTU (MOBILE OVERFLOW PREVENTION)
   ==================================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
        max-width: 100%;
    }
    
    #page.site {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .post-layout-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Główne grafiki */
    .post-featured-image {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .post-featured-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
    }
    
    /* Spis treści (TOC) */
    .toc-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 16px !important;
        margin: 20px 0 !important;
    }
    
    .toc-list {
        padding-left: 0 !important;
        list-style: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .toc-item-h2, .toc-item-h3 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .toc-link {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Nawigacja pod wpisem */
    .nav-post-card {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nav-post-card > div {
        min-width: 0 !important;
        flex: 1 !important;
    }
    
    .nav-post-title {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Ramka autora */
    .post-author-bio-box {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .post-author-bio-info {
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .post-author-bio-desc {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Style dla bogatej treści strony autora */
.author-rich-content {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.75;
}

.author-rich-content p {
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.75;
}

.author-rich-content h1,
.author-rich-content h2,
.author-rich-content h3,
.author-rich-content h4,
.author-rich-content h5,
.author-rich-content h6 {
    font-family: var(--font-serif);
    color: var(--color-text);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.author-rich-content h1 { font-size: 28px; }
.author-rich-content h2 { font-size: 24px; }
.author-rich-content h3 { font-size: 20px; }

.author-rich-content ul,
.author-rich-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-position: outside;
}

.author-rich-content ul {
    list-style-type: disc;
}

.author-rich-content ol {
    list-style-type: decimal;
}

.author-rich-content li {
    margin-bottom: 8px;
    color: var(--color-muted);
    line-height: 1.7;
}

.author-rich-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

/* ----------------------------------------------------
   11. COOKIE CONSENT BANNER (Zgodność z CLS & Pagespeed)
   ---------------------------------------------------- */
.cookie-consent-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: calc(100% - 60px);
    max-width: 440px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    box-sizing: border-box;
}

.cookie-consent-card.hidden {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    pointer-events: none;
}

.cookie-consent-card .cookie-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cookie-consent-card .cookie-text {
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.65;
    margin-bottom: 25px;
}

.cookie-consent-card .cookie-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cookie-consent-card .cookie-buttons button {
    flex: 1;
    padding: 12px 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-primary);
    box-sizing: border-box;
}

.cookie-consent-card .cookie-links {
    text-align: center;
}

.cookie-consent-card .cookie-link-btn {
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.cookie-consent-card .cookie-link-btn:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* Ustawienia zaawansowane */
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.cookie-option-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-text);
}

.cookie-option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    cursor: pointer;
    accent-color: var(--color-text);
    margin: 0;
}

.cookie-consent-settings.hidden,
.cookie-consent-main.hidden {
    display: none !important;
}

/* Dostosowanie mobilne */
@media (max-width: 576px) {
    .cookie-consent-card {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 24px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    .cookie-consent-card.hidden {
        transform: translateY(100%);
    }
}

/* ----------------------------------------------------
   12. POWIĄZANE WPISY (RELATED POSTS)
   ---------------------------------------------------- */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.related-section-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--color-text);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
}

.related-post-image {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: var(--bg-secondary);
    margin-bottom: 15px;
}

.related-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.related-post-image img:hover {
    transform: scale(1.03);
}

.related-post-category {
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 8px;
    display: inline-block;
}

.related-post-title {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
}

.related-post-title a {
    color: var(--color-text);
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--color-muted);
}

.related-post-link {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
}

.related-post-link:hover {
    color: var(--color-muted);
    border-color: var(--color-muted);
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

