/* fizjo-home.css — fizjointouch-child-v4 */
/* Auto-extracted from home.php */

/* ══════════════════════════════════════════════════════════════════
   BLOG — FIT DESIGN SYSTEM
   ══════════════════════════════════════════════════════════════════ */
.blog-page {
    --blue:    #2faeda; --blue-dk: #1a8cbf; --blue-lt: #eef8fd;
    --orange:  #fd9b32;
    --ink:     #1e2d3a; --ink-60: #4a5f6e; --ink-30: #95aab6;
    --ink-10:  #e4eaed; --bg: #f6f8fa; --white: #ffffff;
    --r: 12px;
    --sh-sm: 0 1px 4px rgba(15,25,35,.05), 0 4px 16px rgba(15,25,35,.06);
    --sh-md: 0 4px 12px rgba(15,25,35,.07), 0 16px 40px rgba(15,25,35,.10);
    font-family: 'Inter', sans-serif;
    color: var(--ink); font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
.blog-page *, .blog-page *::before, .blog-page *::after { box-sizing: border-box; }
.blog-page h1, .blog-page h2, .blog-page h3 {
    font-family: 'Libre Baskerville', serif;
    line-height: 1.2; margin: 0; color: var(--ink);
}
.blog-wrap { max-width: 1340px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .blog-wrap { padding: 0 20px; } }

/* ── HERO ──────────────────────────────────────────────────────────── */
.blog-hero {
    background: var(--white);
    border-bottom: 1px solid var(--ink-10);
    padding: 56px 0 0;
    position: relative;
    overflow: hidden;
}
.blog-hero::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 420px; height: 100%;
    background: linear-gradient(135deg, var(--blue-lt) 0%, transparent 70%);
    pointer-events: none; opacity: .6;
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .68rem; font-weight: 600; letter-spacing: .13em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.blog-eyebrow::before {
    content: ''; display: block; width: 18px; height: 1.5px;
    background: var(--blue);
}
.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
    line-height: 1.15; margin-bottom: 12px; letter-spacing: -.02em;
}
.blog-hero-desc {
    font-size: .95rem; color: var(--ink-60); max-width: 480px;
    line-height: 1.75; margin-bottom: 0;
}

/* ── FILTR KATEGORII ────────────────────────────────────────────────── */
.blog-filter-bar {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; padding: 28px 0 0; border-top: none;
}
.blog-filter-btn {
    display: inline-flex; align-items: center;
    padding: 7px 16px; border-radius: 100px;
    font-size: .78rem; font-weight: 500; font-family: 'Inter', sans-serif;
    text-decoration: none; transition: all .2s; white-space: nowrap;
    border: 1.5px solid var(--ink-10);
    color: var(--ink-60); background: var(--white);
}
.blog-filter-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.blog-filter-btn.active {
    background: var(--blue); border-color: var(--blue);
    color: white; font-weight: 600;
}

/* Linia pod hero */
.blog-hero-rule {
    height: 3px; margin-top: 32px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue-lt) 60%, transparent 100%);
}

/* ── SEKCJA GŁÓWNA ──────────────────────────────────────────────────── */
.blog-main { padding: 56px 0 80px; }

/* ── FEATURED POST ─────────────────────────────────────────────────── */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--ink-10);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--sh-sm);
    transition: box-shadow .25s;
    text-decoration: none; color: inherit;
}
.blog-featured:hover { box-shadow: var(--sh-md); }
.blog-featured-img {
    position: relative; overflow: hidden;
    min-height: 260px; max-height: 300px;
}
.blog-featured-img img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
    display: block;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); }
.blog-featured-body {
    padding: 32px 36px;
    display: flex; flex-direction: column; justify-content: center;
    gap: 12px;
}
.blog-cat-pill {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 100px;
    background: var(--blue-lt); color: var(--blue-dk);
    font-size: .65rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    width: fit-content;
}
.blog-featured-body h2 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 700; letter-spacing: -.018em;
    line-height: 1.25;
}
.blog-featured-body h2:hover { color: var(--blue); transition: color .2s; }
.blog-featured-excerpt {
    font-size: .85rem; color: var(--ink-60); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-featured-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: .75rem; color: var(--ink-30); margin-top: 4px;
}
.blog-featured-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-30); }
.blog-featured-cta {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--blue); font-size: .85rem; font-weight: 600;
    margin-top: 4px;
}
.blog-featured-cta svg { transition: transform .2s; }
.blog-featured:hover .blog-featured-cta svg { transform: translateX(4px); }

/* ── SIATKA POSTÓW ──────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

/* ── KARTA POSTA ────────────────────────────────────────────────────── */
.blog-card {
    background: var(--white);
    border: 1px solid var(--ink-10);
    border-radius: var(--r);
    overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: box-shadow .25s, transform .25s;
    box-shadow: var(--sh-sm);
}
.blog-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-3px);
}
.blog-card-img {
    position: relative; overflow: hidden;
    aspect-ratio: 16/10;
}
.blog-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease; display: block;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-placeholder {
    width: 100%; aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--blue-lt) 0%, var(--bg) 100%);
    display: flex; align-items: center; justify-content: center;
}
.blog-card-img-placeholder svg {
    width: 48px; height: 48px; stroke: var(--blue);
    fill: none; opacity: .3;
}
.blog-card-cat-wrap {
    position: absolute; top: 12px; left: 12px;
}
.blog-card-body {
    padding: 24px 24px 28px;
    display: flex; flex-direction: column; gap: 10px;
    flex: 1;
}
.blog-card-title {
    font-size: 1rem; font-weight: 700; line-height: 1.35;
    letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card:hover .blog-card-title { color: var(--blue); transition: color .2s; }
.blog-card-excerpt {
    font-size: .82rem; color: var(--ink-60); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin: 0; flex: 1;
}
.blog-card-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: .72rem; color: var(--ink-30);
    margin-top: auto; padding-top: 14px;
    border-top: 1px solid var(--ink-10);
}
.blog-card-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-10); }
.blog-card-read {
    margin-left: auto; display: flex; align-items: center; gap: 5px;
    color: var(--blue); font-size: .72rem; font-weight: 600;
}
.blog-card-read svg { width: 12px; height: 12px; stroke: var(--blue); fill: none; stroke-width: 2.5; }

/* ── PAGINACJA ──────────────────────────────────────────────────────── */
.blog-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 56px; flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 8px;
    border-radius: 8px; font-size: .82rem; font-weight: 500;
    text-decoration: none; transition: all .2s; font-family: 'Inter', sans-serif;
}
.blog-pagination a { border: 1.5px solid var(--ink-10); color: var(--ink-60); }
.blog-pagination a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.blog-pagination .current {
    background: var(--blue); color: white; border: 1.5px solid var(--blue);
    font-weight: 600;
}
.blog-pagination .dots { border: none; color: var(--ink-30); min-width: unset; }

/* ── BRAK POSTÓW ────────────────────────────────────────────────────── */
.blog-empty {
    grid-column: 1/-1;
    text-align: center; padding: 80px 20px; color: var(--ink-60);
}
.blog-empty h3 { font-family: 'Libre Baskerville', serif; margin-bottom: 12px; }

/* ── RESPONSYWNOŚĆ ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-img { min-height: 220px; max-height: 240px; }
    .blog-featured-body { padding: 24px 24px; }
}
@media (max-width: 640px) {
    .blog-featured-img { min-height: 220px; }
    .blog-featured-body { padding: 24px 20px; }
    .blog-hero { padding: 40px 0 0; }
    .blog-main { padding: 36px 0 60px; }
}
