/* ═══════════════════════════════
   BLOG-SPECIFIC STYLY (.bc-*)
   Globální tokeny (gold/sky/navy/...) + utility (.w, .h2, .tag, .btn,
   .final-cta, .global-nav, .foot-*) jsou v Astro BaseLayout.css.
   Tady doplňujeme jen blog-specifické komponenty.
═══════════════════════════════ */

/* ─── BlogSubNav (sticky pod GlobalNav) ─── */
.blog-subnav {
    position: sticky;
    top: 56px;
    z-index: 40;
    background: rgba(250, 250, 248, .82);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.blog-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    flex-wrap: wrap;
}
.blog-subnav-brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
    text-decoration: none;
    color: var(--navy);
}
.blog-subnav-tag {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
}
.blog-subnav-title {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.3px;
}
.blog-subnav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
}
.blog-subnav-links a {
    color: var(--navy);
    text-decoration: none;
    opacity: .72;
    transition: opacity .2s, color .2s;
}
.blog-subnav-links a:hover,
.blog-subnav-links a.is-active {
    opacity: 1;
    color: var(--gold);
}
.blog-subnav-lang {
    border: 1px solid rgba(26, 58, 92, .15);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
}

/* ─── Hero (mini) ─── */
.bc-hero {
    padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 4vw, 56px);
    background: var(--warm);
}
.bc-hero .h2 {
    margin: 14px 0 16px;
}
.bc-hero-sub {
    max-width: 720px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}

.bc-author-hero {
    padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
    background: var(--warm);
}
.bc-author-hero-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
    align-items: start;
}
.bc-author-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}
.bc-author-hero-bio {
    margin-top: 12px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    max-width: 720px;
}
@media (max-width: 640px) {
    .bc-author-hero-grid { grid-template-columns: 1fr; }
}

/* ─── Featured card (homepage blogu) ─── */
.bc-featured {
    padding: clamp(40px, 5vw, 72px) 0;
    background: var(--bg);
}
.bc-featured-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
}
.bc-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .1);
}
.bc-featured-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
}
.bc-featured-cover {
    overflow: hidden;
    background: var(--warm);
    min-height: 100%;
}
.bc-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bc-featured-body {
    padding: clamp(28px, 3.5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.bc-featured-cat {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 4px;
}
.bc-featured-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--navy);
    margin: 0;
}
.bc-featured-excerpt {
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}
.bc-featured-meta {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
@media (max-width: 880px) {
    .bc-featured-link { grid-template-columns: 1fr; }
    .bc-featured-cover { aspect-ratio: 16 / 9; }
}

/* ─── List grid + cards ─── */
.bc-list {
    padding: clamp(48px, 6vw, 90px) 0;
}
.bc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2vw, 32px);
}
@media (max-width: 980px) {
    .bc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bc-grid { grid-template-columns: 1fr; }
}
.bc-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    transition: transform .3s, box-shadow .3s;
}
.bc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}
.bc-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.bc-card-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--warm);
}
.bc-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.bc-card:hover .bc-card-cover img {
    transform: scale(1.04);
}
.bc-card-body {
    padding: clamp(18px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.bc-card-cat {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
}
.bc-card-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -.6px;
    color: var(--navy);
    margin: 0;
}
.bc-card-excerpt {
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bc-card-meta {
    margin-top: auto;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bc-dot { opacity: .35; }

/* ─── Pager ─── */
.bc-pager {
    margin-top: clamp(40px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: 'Sora', sans-serif;
}
.bc-pager-link {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid rgba(26, 58, 92, .15);
    transition: background .2s, border-color .2s;
}
.bc-pager-link:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.bc-pager-info {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

/* ─── Aside (kategorie + tag cloud) ─── */
.bc-aside {
    padding: 0 0 clamp(48px, 6vw, 90px);
}
.bc-aside-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(24px, 3vw, 48px);
    padding: clamp(28px, 3vw, 40px);
    border-radius: 18px;
    background: var(--warm);
}
.bc-aside-title {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 16px;
}
.bc-cat-list { list-style: none; padding: 0; margin: 0; }
.bc-cat-list li { margin-bottom: 6px; }
.bc-cat-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}
.bc-cat-list a:hover { color: var(--gold); }
.bc-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, .08);
    text-decoration: none;
    color: var(--navy);
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s, border-color .2s;
}
.bc-tag-chip:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.bc-tag-count {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--muted);
}
@media (max-width: 760px) {
    .bc-aside-grid { grid-template-columns: 1fr; }
}

/* ─── Article detail ─── */
.bc-article {
    background: var(--bg);
}
.bc-article-head {
    padding: clamp(48px, 6vw, 96px) 0 clamp(24px, 3vw, 40px);
}
.bc-article-cat {
    margin-bottom: 16px;
    text-decoration: none;
    display: inline-block;
}
.bc-article-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -2.5px;
    color: var(--navy);
    margin: 0;
    max-width: 920px;
}
.bc-article-subtitle {
    margin-top: 18px;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--text);
    max-width: 720px;
}
.bc-article-meta {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}
.bc-author-avatar {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}
.bc-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bc-author-name {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}
.bc-author-name:hover { color: var(--gold); }

.bc-article-cover {
    margin: 0;
    padding: 0 clamp(20px, 5vw, 48px);
    max-width: 1280px;
    margin: 0 auto;
}
.bc-article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    background: var(--warm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
}

.bc-article-body {
    display: grid;
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    padding-top: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(40px, 5vw, 72px);
}
.bc-article-toc { position: relative; }
.bc-toc-sticky {
    position: sticky;
    top: 130px;
    font-family: 'Sora', sans-serif;
}
.bc-toc-title {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
}
.bc-toc-list, .bc-toc-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bc-toc-list li { margin-bottom: 8px; }
.bc-toc-list ol { padding-left: 12px; margin-top: 6px; }
.bc-toc-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -12px;
    display: block;
    transition: border-color .2s, color .2s;
}
.bc-toc-list a:hover {
    color: var(--navy);
    border-left-color: var(--gold);
}

.bc-article-content {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    max-width: 720px;
}
.bc-article-content > * + * { margin-top: 1.4em; }
.bc-article-content h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--navy);
    margin-top: 2em;
    scroll-margin-top: 130px;
}
.bc-article-content h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 22px);
    letter-spacing: -.5px;
    line-height: 1.3;
    color: var(--navy);
    margin-top: 1.6em;
    scroll-margin-top: 130px;
}
.bc-article-content p { margin: 0; }
.bc-article-content a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: rgba(232, 184, 48, .55);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: text-decoration-color .2s;
}
.bc-article-content a:hover {
    text-decoration-color: var(--gold);
}
.bc-article-content ul, .bc-article-content ol {
    padding-left: 1.4em;
}
.bc-article-content li { margin-bottom: .4em; }
.bc-article-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 4px 0 4px 22px;
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
}
.bc-article-content code {
    background: rgba(26, 58, 92, .06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: .9em;
}
.bc-article-content pre,
.bc-article-content .code-block {
    background: var(--navy-deep, #0F2338);
    color: #e6e8eb;
    padding: 18px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    line-height: 1.65;
}
.bc-article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.bc-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.bc-article-content table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}
.bc-article-content th,
.bc-article-content td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    text-align: left;
}
.bc-article-content th {
    background: var(--warm);
    font-weight: 700;
    color: var(--navy);
}
.bc-article-content .ext-arrow {
    margin-left: 4px;
    font-size: .85em;
    opacity: .7;
}

.bc-article-tags {
    padding-bottom: clamp(32px, 4vw, 56px);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.bc-author-bio {
    padding-bottom: clamp(48px, 5vw, 80px);
}
.bc-author-bio-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: clamp(20px, 2.5vw, 32px);
    border-radius: 16px;
    background: var(--warm);
    align-items: start;
}
.bc-author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.bc-author-bio-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--navy);
    letter-spacing: -.3px;
}
.bc-author-bio-name a { color: inherit; text-decoration: none; }
.bc-author-bio-name a:hover { color: var(--gold); }
.bc-author-bio-text {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}

/* ─── Related ─── */
.bc-related {
    padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 90px);
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, .06);
}
.bc-related-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: -1px;
    color: var(--navy);
    margin: 0 0 28px;
}

/* ─── Empty state ─── */
.bc-empty {
    padding: clamp(40px, 5vw, 72px) 0;
    text-align: center;
    color: var(--muted);
    font-style: italic;
}

/* ─── CTA band (final-cta wrapper) ─── */
.bc-cta-band {
    padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7vw, 110px);
}

/* ─── Reveal (replikuje globální .r/.v) ─── */
.r {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}
.r.v {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .r, .r.v { opacity: 1; transform: none; transition: none; }
}

/* ─── Error 404 ─── */
.bc-error {
    min-height: 60vh;
    display: flex;
    align-items: center;
}
