/* Blog – výpis článků */

/* --- Karty článků: stejný blok je i v clanek.css (kandidát do main.css) --- */
.topic-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--steel); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.post-meta time { white-space: nowrap; }
.post-meta__read { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.post-meta__read svg { flex-shrink: 0; }
.read-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.read-more__ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--flame); color: var(--steel); transition: transform .2s; }
a:hover .read-more__ico { transform: translateX(3px); }
.post-card { height: 100%; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.post-card__media { position: relative; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__media .topic-chip { position: absolute; top: 16px; left: 16px; }
.post-card__body { flex: 1; display: flex; flex-direction: column; padding: 24px 28px 28px; }
.post-card__title { margin-top: 10px; font-size: 24px; line-height: 1.2; }
.post-card__text { margin-top: 8px; color: var(--muted); text-wrap: pretty; }
.post-card__body > .read-more { margin-top: auto; padding-top: 20px; align-self: flex-start; }
a.post-card:hover .post-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 639px) {
  .post-card__body { padding: 20px 20px 24px; }
  .post-card__title { font-size: 22px; }
}
/* --- konec společného bloku --- */

/* Hero */
.blog-hero__perex { font-size: 20px; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 1024px) {
  .blog-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
  .blog-hero__perex { margin-bottom: 6px; }
}
@media (max-width: 1023px) {
  .blog-hero__perex { max-width: 760px; margin-top: 16px; font-size: 18px; }
}

/* Lišta s filtrem témat */
.blog-bar { margin-top: 48px; padding: 16px 0; border-top: 1px solid var(--line, #e2e2e2); border-bottom: 1px solid var(--line, #e2e2e2); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter button { flex-shrink: 0; display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--steel); font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .15s, box-shadow .15s; }
.blog-filter button:hover { background: var(--paper); }
.blog-filter button[aria-pressed="true"] { background: var(--flame); box-shadow: inset 0 0 0 1.5px var(--flame); font-weight: 600; }
@media (max-width: 639px) {
  .blog-bar { margin-top: 28px; padding: 0; border: 0; }
  /* chipy se posouvají vodorovně až k okraji displeje, pravý okraj se ztrácí */
  .blog-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .blog-filter::after { content: ""; flex: 0 0 24px; }
  .blog-filter::-webkit-scrollbar { display: none; }
  .blog-filter button { height: 44px; padding: 0 18px; font-size: 15px; }
}

/* Nadpisy sekcí: Nejčtenější článek, Další články */
.blog-sec-title { margin-bottom: 32px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
@media (max-width: 1023px) { .blog-sec-title { font-size: 32px; margin-bottom: 24px; } }
@media (max-width: 639px) { .blog-sec-title { font-size: 28px; line-height: 1.15; margin-bottom: 20px; } }

/* Nejčtenější článek */
.feat { margin-top: 56px; }
.feat__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 380px; background: var(--paper); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.feat__media { position: relative; min-height: 300px; }
.feat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 36px 40px; }
.feat__meta { font-size: 15px; }
.feat__title { margin-top: 12px; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.feat__text { margin-top: 12px; line-height: 1.55; text-wrap: pretty; }
.feat .read-more { margin-top: 20px; }
.feat__link:hover .feat__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 1023px) {
  .feat { margin-top: 48px; }
  .feat__link { min-height: 320px; }
  .feat__body { padding: 28px 32px; }
  .feat__title { font-size: 24px; line-height: 1.2; }
}
@media (max-width: 767px) {
  .feat { margin-top: 32px; }
  .feat__link { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .feat__media { min-height: 0; aspect-ratio: 16 / 10; }
  .feat__body { padding: 24px 20px 28px; }
  .feat__meta { font-size: 14px; }
  .feat .read-more { margin-top: 16px; }
}

/* Mřížka článků */
.blog-list { padding-top: 80px; padding-bottom: 96px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-grid > li { display: flex; flex-direction: column; }
.blog-more { margin-top: 64px; display: flex; justify-content: center; }
@media (max-width: 1199px) { .post-grid { gap: 24px; } }
.blog-list [hidden], .feat[hidden] { display: none !important; }
@media (max-width: 1023px) {
  .blog-list { padding-top: 48px; padding-bottom: 80px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 639px) {
  .blog-list { padding-top: 48px; padding-bottom: 48px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .blog-more { margin-top: 40px; }
  .blog-more .btn-arrow { width: 100%; }
}
