/* ──────────────────────────────────────────────
   SINGLE POST — szablon wpisu blogowego
   ────────────────────────────────────────────── */

.blog-single { padding: clamp(40px, 6vw, 80px) 0 60px; background: #fff; }

.blog-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

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

/* HERO — featured image z naklejką kategorii */
.blog-single__hero {
    position: relative;
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
    background: #f3e9da;
}
.blog-single__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.blog-single__cat {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.84);
    color: #fff;
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 26px;
    text-decoration: none;
    transition: background 0.25s ease;
}
.blog-single__cat:hover,
.blog-single__cat:focus-visible { background: #CAAB69; }

/* META — autor + data */
.blog-single__head { margin: 0 0 24px; }
.blog-single__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-single__author,
.blog-single__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-single__sep { width: 1px; height: 12px; background: #ccc; }

.blog-single__icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.6;
}
.blog-single__icon--user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4 0-9 2-9 6v2h18v-2c0-4-5-6-9-6z'/%3E%3C/svg%3E");
}
.blog-single__icon--cal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E");
}

/* TITLE — centrowany, zawijany w 2 linie, w stylu usl-intro */
.blog-single__head { text-align: center; }
.blog-single__meta { justify-content: center; }
.blog-single__title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    max-width: 760px;
    margin: 0 auto 30px;
}

/* BODY — treść wpisu */
.blog-single__body {
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    max-width: 760px;
}
.blog-single__body > * { margin: 0 0 1.2em; }
.blog-single__body > *:last-child { margin-bottom: 0; }

.blog-single__body h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
    line-height: 1.3;
    color: #111;
    margin: 1.8em 0 0.6em;
    letter-spacing: 0.01em;
}
.blog-single__body h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
    line-height: 1.3;
    color: #111;
    margin: 1.5em 0 0.5em;
}
.blog-single__body p { margin: 0 0 1.2em; }
.blog-single__body strong, .blog-single__body b { font-weight: 700; color: #111; }
.blog-single__body a {
    color: #B58A2D;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.blog-single__body a:hover,
.blog-single__body a:focus-visible { color: #CAAB69; }
.blog-single__body ul, .blog-single__body ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.blog-single__body li { margin: 0 0 0.5em; }
.blog-single__body blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 3px solid #CAAB69;
    background: #F5EEE8;
    font-style: italic;
    color: #555;
}
.blog-single__body img { max-width: 100%; height: auto; border-radius: 4px; }
.blog-single__body figure { margin: 1.5em 0; }

/* SIDEBAR — Polecane artykuły */
.blog-single__sidebar { position: sticky; top: 100px; }
.blog-single__sidebar-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: #111;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e0d3;
    letter-spacing: 0.02em;
}
.blog-single__related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-related-card {}
.blog-related-card__link {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}
.blog-related-card__link:hover,
.blog-related-card__link:focus-visible { opacity: 0.75; }
.blog-related-card__thumb {
    width: 80px;
    height: 80px;
    overflow: hidden;
    background: #f3e9da;
    border-radius: 4px;
    flex-shrink: 0;
}
.blog-related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.blog-related-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #f3e9da 0%, #e8d9c0 100%);
}
.blog-related-card__text { min-width: 0; }
.blog-related-card__title {
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #111;
    margin: 0 0 8px;
}
.blog-related-card__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #B58A2D;
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
}

/* ───── Tablet ───── */
@media (max-width: 1100px) {
    .blog-single__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
    .blog-related-card__link { grid-template-columns: 64px 1fr; gap: 12px; }
    .blog-related-card__thumb { width: 64px; height: 64px; }
}

/* ───── Mobile ───── */
@media (max-width: 900px) {
    .blog-single__layout { grid-template-columns: 1fr; gap: 50px; }
    .blog-single__sidebar { position: static; }
    .blog-single__hero { aspect-ratio: 4/3; }
    .blog-single__cat { top: 12px; left: 12px; padding: 8px 18px; font-size: 11px; }
}
@media (max-width: 600px) {
    .blog-single__meta { font-size: 12px; gap: 12px; }
    .blog-single__sep { display: none; }
}
