/* Quicksand font loaded via <link> in template.php for faster rendering */

/* Zmienne główne (Cute / Pet-Friendly Look) */
:root {
    --bg-color: #faf8f5;
    --text-main: #4a4a4a;
    --text-muted: #888888;
    --accent-color: #ff6b81;
    --accent-hover: #fe7f9c;
    --secondary-color: #ffa2b6;
    --border-color: #ffe3e8;

    --font-sans: 'Quicksand', sans-serif;
    --font-serif: 'Quicksand', sans-serif;
}

/* Reset bazowy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nawigacja */
.site-header {
    background: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.08);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Sekcja Wstępna (Hero) */
.hero-section {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 4rem auto;
    padding: 6rem 20px;
    background-color: #fff5f5;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.hero-section h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Sekcje Strony Głównej */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Nowe, Bogate Linie Kategorii (Grid-Rich) */
.categories-grid-rich {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.cat-card-rich {
    background: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    position: relative;
    /* Wymaganie dla stretched-link */
}

/* Stretched Link - klikalna cala karta */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.cat-card-rich:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.15);
    border-color: var(--border-color);
}

.cat-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-card-rich:hover .cat-img-wrap img {
    transform: scale(1.05);
}

.cat-content-rich {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-content-rich h3 {
    font-family: var(--font-serif);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.cat-content-rich p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-weight: 400;
}

.cat-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    background: #fff5f5;
    padding: 8px 16px;
    border-radius: 20px;
    align-self: flex-start;
    margin-top: auto;
    display: inline-block;
    /* Bo zmieniono z <a> na <span> */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cat-card-rich:hover .cat-link {
    background: var(--accent-color);
    color: #ffffff;
}

/* Drzewo Tagów */
.tags-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    background: #ffffff;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    margin-bottom: 4rem;
}

.tag-group h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tag-list {
    list-style: none;
}

.tag-list li {
    margin-bottom: 0.75rem;
}

.tag-list a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tag-list a:hover {
    color: var(--accent-color);
}

/* Stary układ dla fallbckow */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.cat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #fff;
    border: 3px solid #fff;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.cat-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.cat-card:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.15);
}

.cat-card:hover h3 {
    color: var(--accent-color);
}



/* Listowanie Postów (Category/Tag Views) */
.page-header {
    text-align: center;
    margin: 3rem 0;
}

.page-header.has-cover-image {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    margin: 1rem 0 4rem;
    padding-bottom: 3rem;
    border: 3px solid #ffffff;
}

.page-header-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    border-radius: 30px 30px 0 0;
}

.page-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-content {
    padding: 0 3rem;
    margin-top: 2.5rem;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.page-header p,
.lead-description p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.card {
    background-color: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 3px solid #fff;
    position: relative;
    /* Wymaganie dla stretched-link */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.15);
    border-color: var(--border-color);
}

.card-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img,
.card-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

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

.card-placeholder-img {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.publish-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-main);
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Ilość widocznych linii */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}


/* Paginacja */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    /* RWD */
}

.btn-page {
    padding: 10px 25px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    color: var(--accent-color);
    border-radius: 30px;
    font-weight: 700;
}

.btn-page:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.page-info {
    font-weight: 600;
    color: var(--text-muted);
}


/* Wnętrze (Single Article) */
.single-article {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--white);
    padding: 3rem 4rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.breadcrumbs {
    font-size: 0.95em;
    color: #888;
    background: #faf8f5;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumbs a {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

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

.article-header h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 1.5rem 0;
    color: var(--accent-color);
}

.featured-image {
    margin-bottom: 3rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.15);
    border: 4px solid #fff;
}

/* Typography styles inside the Generated Content! */
.article-content h2,
.article-content h3 {
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    color: var(--accent-hover);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-decoration-thickness: 2px;
}

.article-content a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

/* Wewnętrzne obrazki w artykułach */
.inner-image-wrapper {
    margin: 3rem 0;
    text-align: center;
}

.inner-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.inner-image-wrapper figcaption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

/* YouTube Video Wrapper for Responsiveness */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: none;
}

/* Linia Ozdobna */
.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 4rem auto;
    width: 80px;
}


/* Stopka */
.site-footer {
    background-color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-col strong {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-col p {
    color: var(--text-muted);
}

.partner-links {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.partner-links a {
    color: var(--accent-color);
}

.partner-links a:hover {
    text-decoration: underline;
}

/* Nowe klasy dla stopki (SEO audit) */
.footer-category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 0.5rem;
}

.footer-category-list li {
    width: 45%;
    margin-bottom: 0.5rem;
}

.footer-category-list a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-category-list a::before {
    content: "→ ";
    opacity: 0.7;
}

.footer-category-list a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Skip to content (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-size: 0.9rem;
    border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
    top: 0;
}

/* Updated date on articles */
.date-updated {
    margin-left: 1rem;
    font-style: italic;
}

/* Rozdzielone style Breadcrumbs */
.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Description Lists / Feature Comparisons */
.comparison-list {
    background: #ffffff;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.comparison-feature {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}

.comparison-feature:first-child {
    margin-top: 0;
}

.comparison-list dd {
    margin-left: 0;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.comparison-list dd::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Tables for Cost Summaries */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cost-summary-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
    font-size: 1.05rem;
}

.cost-summary-table th,
.cost-summary-table td,
.comparison-table th,
.comparison-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cost-summary-table thead th,
.comparison-table thead th {
    background-color: #fffafa;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ffe3e8;
}

.cost-summary-table tbody tr:hover,
.comparison-table tbody tr:hover {
    background-color: #fcfcfc;
}

.cost-summary-table tfoot th,
.cost-summary-table tfoot td,
.comparison-table tfoot th,
.comparison-table tfoot td {
    background-color: #fffafa;
    font-weight: bold;
    color: var(--color-primary);
    border-top: 2px solid #ffe3e8;
    border-bottom: none;
}

/* Table of Contents (Spis Treści) */
.table-of-contents {
    background: #fffafa;
    border: 2px dashed #ffb6b9;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
}

.table-of-contents .toc-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.table-of-contents li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: var(--accent-hover);
}

.table-of-contents a.active {
    font-weight: bold;
}

/* See Also Section */
.see-also-section {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 2px solid #ffe3e8;
}

.see-also-section h3 {
    color: #ff8b94 !important;
    margin-top: 0 !important;
}

.see-also-section ul {
    list-style-type: none;
    padding: 0;
}

.see-also-section li {
    margin-bottom: 12px;
    font-size: 1.05em;
}

.see-also-section a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.see-also-section a:hover {
    color: var(--accent-hover);
}

/* FAQ Section Accordion */
.article-faq {
    margin: 3rem 0;
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.article-faq h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    list-style: none;
    /* Hide default marker on standard browsers */
    position: relative;
    padding-right: 2rem;
}

/* Override default marker on Safari */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--color-primary);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.6;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Author Box */
.author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff5f5;
    border-radius: 20px;
    border: 2px dashed #ffb6b9;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    font-size: 3.5rem;
}

.author-info {
    font-style: normal;
}

.author-name {
    margin: 0;
    color: #ff6b81;
    font-size: 1.2em;
}

.author-bio {
    margin: 10px 0 0 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   SEO Cleanup: Classes replacing inline styles
   ============================================ */

/* Visually Hidden (accessible to screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Breadcrumbs: Listing page variant */
.breadcrumbs--listing {
    margin-bottom: 1.5rem;
}

.breadcrumbs-list--centered {
    justify-content: center;
}

/* Page title & subtitle for listing pages */
.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Listing: empty state message */
.listing-empty-message {
    text-align: center;
    width: 100%;
    padding: 4rem 0;
    color: var(--text-muted);
}

/* Author Page */
.author-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.author-header {
    text-align: center;
    margin-bottom: 2rem;
}

.author-page .author-avatar {
    font-size: 5rem;
}

.author-page .author-name {
    color: var(--accent-color);
    margin-top: 1rem;
    font-size: 2.5rem;
}

.author-bio-card {
    background: #fffafa;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px dashed #ffb6b9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.author-bio-title {
    color: var(--accent-color);
    margin-top: 0;
}

.author-bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.author-cta {
    text-align: center;
    margin-top: 3rem;
}

/* 404 Error Page */
.error-page {
    text-align: center;
    padding: 6rem 0;
}

.error-code {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.error-categories {
    margin-top: 3rem;
}

.error-categories h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.error-cat-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.error-cat-list li a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-alt, #f0ebe3);
    border-radius: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.error-cat-list li a:hover {
    background: var(--accent-color);
    color: #fff;
}


/* RWD - Responsive Design */
/* Mobile Menu Toggle (Ukryty na Desktopach) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    min-width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.6rem;
        position: relative;
        z-index: 101;
        /* By był nad otwartym menu */
    }

    /* Pokaż Hamburger na mobilce */
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    /* Ustawienia nawigacji na tel */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav .nav-list.active {
        display: flex;
        /* Zmieniamy za pomocą JS jeśli potrzebne, lub przez sam widok kontenera */
    }

    /* Wyświetlanie po 'active' ustawionym z JS w pliku <script> */
    .main-nav .nav-list {
        display: none;
    }

    .main-nav .nav-list.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(255, 107, 129, 0.08);
        padding: 1.5rem 0;
        border-top: 1px solid var(--border-color);
        z-index: 100;
        animation: fadeIn 0.3s forwards;
    }

    .main-nav .nav-list li {
        text-align: center;
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px dashed var(--border-color);
    }

    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
    }

    /* Animacja X dla hamburgera po kliknięciu */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Reszta RWD poniżej */
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .single-article {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-col ul {
        justify-content: center;
    }

    .tags-directory {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .categories-grid-rich {
        grid-template-columns: 1fr;
    }

    .cat-img-wrap {
        height: 180px;
    }

    .footer-col {
        text-align: center !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}