/* =========================================================================
   Noso Blog — výpis /blog/ + /blog-tag/ (V2 Compact Cards)
   Tokeny (--bg-*, --text-*, --border-*, --accent, --radius-*) dědí z theme.css.
   Accent vždy přes var(--accent). Efekty minimální (≤0.1s), hover jen @media hover.
   ========================================================================= */

.nblog-wrap { max-width: 1500px; margin: 0 auto; padding: 28px var(--side-pad) 0; }

/* ----- page intro ----- */
.nblog-intro { margin-bottom: 20px; }
.nblog-intro h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--text-primary); }
.nblog-intro p { margin-top: 7px; color: var(--text-secondary); font-size: 14px; max-width: 560px; }

/* ----- hero (featured) ----- */
.nblog-hero { display: block; position: relative; width: 100%; aspect-ratio: 5/1; min-height: 150px; max-height: 280px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.nblog-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% -70px; transition: transform .4s cubic-bezier(.25,.46,.45,.94); }
@media (hover: hover) { .nblog-hero:hover .nblog-hero-img { transform: scale(1.05); } }
.nblog-hero-ph { position: absolute; inset: 0; background: linear-gradient(135deg, #2a1826, #15131a 55%, #1d1422); }
.nblog-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,9,8,.92) 0%, rgba(10,9,8,.55) 45%, rgba(10,9,8,.1) 100%); }
.nblog-hero-body { position: absolute; left: 0; top: 0; z-index: 2; padding: clamp(16px, 3vw, 32px); max-width: 680px; text-shadow: 0 1px 7px rgba(0,0,0,.6); }
.nblog-hero-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 15px; }
.nblog-hero h2 { font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: #fff; }
.nblog-hero p { margin-top: 13px; color: var(--text-body); font-size: 14px; line-height: 1.45; max-width: 540px; }

/* shared chip + dot */
.nblog-chip { background: #333333; color: #ffffff; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.nblog-dot { color: var(--text-dim); }

/* ----- filter pills — stejný vzhled jako strip pilly v headeru ----- */
/* wrapper drží scroll šipky (reuse theme .scroll-btn / .scroll-fade / .scroll-parent) */
.nblog-filters-wrap { position: relative; margin-bottom: 22px; }
.nblog-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nblog-filters::-webkit-scrollbar { display: none; }
/* šipky = malé theme .new-strip-nav (34px, vždy viditelné přes .is-hidden); jen vycentrovat na nízkém pill baru */
.nblog-filters-wrap .new-strip-nav { top: 50%; }
/* pilly = stejné jako .new-actor-pill z headeru (konzistence) */
.nblog-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); color: var(--text-body); font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.nblog-pill.is-active { background: #f1f1f1; border-color: #f1f1f1; color: #0f0f0f; }
/* "All" pill aktivní = čistě bílá + 600, bez hoveru (= .new-actor-pill.is-all.active) */
.nblog-pill.is-all.is-active { background: #fff; border-color: #fff; color: #111; font-weight: 600; }
@media (hover: hover) {
  .nblog-pill { transition: background .08s, border-color .5s, color .08s; }
  .nblog-pill:not(.is-active):hover { background: color-mix(in srgb, var(--accent) 62%, transparent); border-color: color-mix(in srgb, var(--accent) 95%, transparent); color: #fff; transition: background 0s, border-color .08s, color 0s; }
  .nblog-pill.is-active:hover { background: #e0e0e0; border-color: #e0e0e0; color: #0f0f0f; }
  .nblog-pill.is-all.is-active:hover { background: #fff; border-color: #fff; color: #111; }
}

/* ----- grid + karty (radius jako video karty: 16px) ----- */
.nblog-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.nblog-card { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .1s; }
.nblog-card-img { position: relative; aspect-ratio: 16/7.2; background: linear-gradient(135deg, #1a1a1a, #222); }
.nblog-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nblog-tag-chip { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(10,9,8,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--text-primary); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-medium); }
.nblog-card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 6px; }
.nblog-card-body h3 { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--text-primary); transition: color .1s; }
.nblog-card-meta { font-size: 12px; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
@media (hover: hover) {
  .nblog-card:hover { border-color: var(--border-medium); }
  .nblog-card:hover h3 { color: #fff; }
}
/* jemná variabilita "obrázkového" pozadí placeholderu */
.nblog-card:nth-child(3n+1) .nblog-card-img { background: linear-gradient(135deg, #241a23, #15131a 60%, #1c1620); }
.nblog-card:nth-child(3n+2) .nblog-card-img { background: linear-gradient(135deg, #1a2026, #13161a 60%, #161c22); }
.nblog-card:nth-child(3n+3) .nblog-card-img { background: linear-gradient(135deg, #26201a, #1a1613 60%, #221c16); }

/* ----- load more (stejný vzhled jako .load-more-btn z homepage) ----- */
.nblog-loadmore { display: flex; justify-content: center; margin: 24px 0 8px; }
.nblog-loadmore button { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; background: #232323; border: 1px solid var(--border-medium); color: var(--text-body); padding: 14px 50px; border-radius: var(--radius-md); font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; }
.nblog-loadmore button svg { flex-shrink: 0; color: var(--text-secondary); }
.nblog-loadmore button.is-loading { opacity: .5; pointer-events: none; }
@media (hover: hover) {
  .nblog-loadmore button:hover { background: #2e2e2e; border-color: var(--border-strong); color: #fff; }
}

/* ----- paginace (SEO / no-JS) ----- */
.nblog-pagination { display: flex; justify-content: center; gap: 6px; margin: 20px 0 8px; flex-wrap: wrap; }
.nblog-pagination a, .nblog-pagination span { padding: 8px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-body); font-size: 13px; line-height: 1; }
.nblog-pagination .current { background: #f1f1f1; border-color: #f1f1f1; color: #0f0f0f; }
@media (hover: hover) { .nblog-pagination a:hover { border-color: var(--border-strong); color: #fff; } }

.nblog-empty { padding: 48px 0; color: var(--text-muted); text-align: center; }

/* ----- responsive ----- */
@media (max-width: 1280px) { .nblog-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1040px) { .nblog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) {
  .nblog-grid { grid-template-columns: repeat(2, 1fr); }
  .nblog-hero { aspect-ratio: auto; background: var(--bg-surface); }
  .nblog-hero-img, .nblog-hero-ph { position: relative; aspect-ratio: 16/9; }
  .nblog-hero::before { display: none; }
  .nblog-hero-body { position: static; padding: 16px; }
  .nblog-card { border-radius: var(--radius-md); }
}
@media (max-width: 420px) { .nblog-grid { grid-template-columns: 1fr; } }
