/* Blog — treść w stylu Scalemora (wczytaj ../scalemora-brand.css przed tym plikiem). */

.page-blog {
    --blog-radius: 12px;
}

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

/* Lista + wpisy: typografia jak na stronie głównej (tylko <main>, bez stopki) */
.page-blog main p {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.page-blog main h1,
.page-blog main h2,
.page-blog main h3,
.page-blog main h4 {
    font-family: "Inter", system-ui, sans-serif;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

/* ——— Lista wpisów ——— */
.blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.sidebar .blog-tools {
    margin-bottom: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.blog-tools .blog-search {
    margin-bottom: 0.5rem;
}

.blog-tools-title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
}

.page-blog .blog-tools-hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-muted);
}

@media (min-width: 961px) {
    .page-blog .sidebar {
        position: sticky;
        top: calc(var(--header-h) + 1.25rem);
        max-height: calc(100vh - var(--header-h) - 2rem);
        overflow-y: auto;
        align-self: start;
        scrollbar-gutter: stable;
    }
}

.sidebar .topic-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.sidebar .topic-chip {
    justify-content: flex-start;
    text-align: left;
    line-height: 1.35;
    padding: 0.5rem 0.8rem;
}

.blog-search {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.blog-search::placeholder {
    color: var(--text-muted);
}

.blog-search:focus {
    outline: none;
    border-color: rgba(226, 176, 122, 0.45);
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.topic-chip:hover {
    color: var(--accent);
    border-color: rgba(226, 176, 122, 0.4);
    background: rgba(226, 176, 122, 0.06);
}

.post-list {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.post-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(226, 176, 122, 0.05);
}

.post-card > a {
    display: block;
    line-height: 0;
}

.post-card img {
    width: 100%;
    height: clamp(200px, 28vw, 260px);
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.post-card-content {
    padding: clamp(1.35rem, 3vw, 1.85rem);
}

.post-card-content > p {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

.meta {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.post-card h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 0.65rem;
    line-height: 1.25;
}

.tags {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.post-card .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border-radius: 4px;
}

.read-more {
    margin-top: 1.25rem;
}

.sidebar {
    display: grid;
    gap: clamp(1rem, 2vw, 1.25rem);
    align-content: start;
}

.side-card h3 {
    margin: 0 0 0.65rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.side-card p {
    font-size: 0.9375rem;
    margin: 0;
}

.side-card ul {
    padding-left: 1.15rem;
    margin: 0;
}

.side-card li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.55;
}

.side-card a {
    color: #d1d1d6;
    text-decoration: underline;
    text-decoration-color: rgba(226, 176, 122, 0.4);
    text-underline-offset: 3px;
}

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

/* ——— Pojedynczy wpis ——— */
.page-blog .article {
    margin: 0 auto;
    max-width: var(--container-max);
}

.article .cover {
    border-radius: var(--blog-radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    max-width: 760px;
    margin: 0 auto;
}

.article .cover img {
    width: 100%;
    height: clamp(220px, 40vw, 360px);
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px);
    gap: 1.25rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    justify-content: center;
}

.article-main {
    min-width: 0;
    max-width: 760px;
    overflow-wrap: anywhere;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: #c8c8cd;
    text-decoration: underline;
    text-decoration-color: rgba(226, 176, 122, 0.45);
    text-underline-offset: 2px;
}

.breadcrumbs span {
    color: var(--text-muted);
    opacity: 0.85;
}

.article-main .meta {
    margin-bottom: 0.85rem;
}

.article-main h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.12;
}

.article-main h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: var(--text-main);
}

.article-main h2:first-of-type {
    margin-top: 1.5rem;
}

.article-main p,
.article-main li {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.article-main strong {
    color: #e8e8ed;
    font-weight: 600;
}

.article-main ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.article-main a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(226, 176, 122, 0.45);
    text-underline-offset: 2px;
}

.article-main a:hover {
    color: #e8d089;
}

.premium-card.toc {
    margin: 0.5rem 0 1.5rem;
    padding: clamp(1.25rem, 3vw, 1.65rem);
}

.toc h3 {
    margin: 0 0 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.toc a {
    display: block;
    margin: 0.4rem 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}

.article-main .tags .tag {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border-radius: 4px;
}

.related-posts {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.related-posts a {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #d1d1d6;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.faq-section {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.faq-section > h3 {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.premium-card.faq-item {
    padding: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 0.75rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.faq-item p {
    margin: 0;
    font-size: 0.9375rem;
}

.premium-card.trust-callout {
    border-color: rgba(226, 176, 122, 0.35);
    background: linear-gradient(145deg, rgba(226, 176, 122, 0.1), rgba(226, 176, 122, 0.03));
    padding: clamp(1.15rem, 2.5vw, 1.35rem);
    margin: 1.25rem 0 1.5rem;
}

.trust-callout p {
    margin: 0;
    color: var(--text-main);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.trust-callout a {
    color: var(--accent);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .post-card {
        transition: none;
    }

    .post-card:hover {
        transform: none;
    }
}

@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .article .cover img {
        height: auto;
    }
}
