/* ==========================================================
   about.css — sjednocený styl pro sekce O nás / Historie / Galerie
   ----------------------------------------------------------
   Ostré hrany, jednotný grid, čistá typografie a karty
   ========================================================== */

/* === GRID STRÁNKY === */
.about-grid,
.historie-grid,
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* === KARTA === */
.about-card,
.historie-card,
.gallery-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.about-card:hover,
.historie-card:hover,
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,0,0,0.12);
}

.about-card__media,
.historie-card__media,
.gallery-card__media {
  aspect-ratio: 16 / 9;
  background: #f5f6f7;
  overflow: hidden;
}

.about-card__img,
.historie-card__img,
.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-card__body,
.historie-card__body,
.gallery-card__body {
  padding: 1rem 1.25rem;
}

.about-card__title,
.historie-card__title,
.gallery-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.about-card__excerpt,
.historie-card__excerpt,
.gallery-card__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === STRÁNKOVÁNÍ === */
.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* === TOC / OSNOVA (pravý panel historie) === */
.toc-box {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 1rem;
  position: sticky;
  top: 2rem;
}

.toc-box h3 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--acc);
  margin-bottom: 0.75rem;
}

.toc-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-box a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: #333;
  transition: all 0.2s ease;
}

.toc-box a:hover {
  background: #e6f0f8;
  color: var(--acc);
}

.toc-box a.is-active {
  background: var(--acc);
  color: #fff;
  font-weight: 600;
}

/* === GALERIE (WordPress block) === */
.wp-block-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.wp-block-gallery img:hover {
  transform: scale(1.03);
}

/* === MASONRY (volitelná varianta) === */
.wp-block-gallery.is-masonry {
  column-count: 3;
  column-gap: 12px;
}
.wp-block-gallery.is-masonry .wp-block-image {
  break-inside: avoid;
  margin-bottom: 12px;
}

/* === RESPONSIVITA === */
@media (max-width: 900px) {
  .about-grid,
  .historie-grid,
  .gallery-grid {
    gap: 1rem;
  }
  .toc-box {
    position: static;
    margin-top: 1.5rem;
  }
  .wp-block-gallery.is-masonry {
    column-count: 2;
  }
}
/* Fotogalerie + Historie aliasy */
.gallery-card,
.historie-card {
  @extend .about-card; /* pokud SCSS, jinak kopírovat strukturu */
}

.gallery-card__body,
.historie-card__body {
  padding: 1rem 1.25rem;
}

.gallery-card__title,
.historie-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.gallery-card__excerpt,
.historie-card__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}


.about-card--aktuality::before { background: #0077b6; }
.about-card--blog::before { background: #9b5de5; }
.about-card--media::before { background: #ffb703; }
.about-card--historie::before { background: #2a9d8f; }
.about-card--fotogalerie::before { background: #e76f51; }
.about-card--bluecatgallery::before { background: #3a86ff; }
.about-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Štítek subkategorie */
.about-card__label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  color: #fff;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Barvy podle podkategorie */
.about-card--aktuality .about-card__label { background: #0077b6; }
.about-card--blog .about-card__label { background: #9b5de5; }
.about-card--media .about-card__label { background: #ffb703; }
.about-card--historie .about-card__label { background: #2a9d8f; }
.about-card--fotogalerie .about-card__label { background: #e76f51; }
.about-card--bluecatgallery .about-card__label { background: #3a86ff; }

/* Volitelné: doladění rozložení */
.about-card__media {
  position: relative;
}

.about-card__body {
  padding: 1rem;
}

/* === MEDIA HUB === */
.site-main--media .section {
  padding-top: 3rem;
}

.media-hub__intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.media-hub__eyebrow,
.media-panel__kicker {
  color: var(--acc);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.media-hub__intro h2 {
  margin-bottom: 0.75rem;
}

.media-hub__intro p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.media-hub__layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
  align-items: start;
}

.media-panel {
  border: 1px solid #d8e2dc;
  background: #fff;
  padding: 1.25rem;
}

.media-panel--social {
  position: sticky;
  top: 1.5rem;
}

.media-panel__header {
  align-items: end;
  border-bottom: 1px solid #d8e2dc;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.media-panel h2 {
  font-size: clamp(1.35rem, 1.1vw + 1rem, 1.8rem);
  margin: 0;
}

.social-sources {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.social-source {
  align-items: center;
  border: 1px solid #d8e2dc;
  color: var(--fg);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0.85rem;
  text-decoration: none;
}

.social-source:hover {
  background: #f3faf5;
  border-color: var(--acc);
  text-decoration: none;
}

.social-source__mark {
  align-items: center;
  background: #1f6b3a;
  color: #fff;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.social-source--instagram .social-source__mark {
  background: #b83280;
}

.social-source--x .social-source__mark {
  background: #111827;
}

.social-source--facebook .social-source__mark {
  background: #1d4ed8;
}

.social-source__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.social-source__label {
  color: var(--acc);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-source__name {
  color: var(--fg);
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.social-source__handle {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-weight: 600;
}

.social-source__open {
  border: 1px solid #d8e2dc;
  color: var(--acc);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
}

.social-feed {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-post,
.media-mention {
  border: 1px solid #d8e2dc;
  background: #f8faf8;
  min-width: 0;
  padding: 1rem;
}

.social-post {
  display: grid;
  gap: 0.75rem;
}

.social-post__meta,
.media-mention__meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.45rem 0.75rem;
  justify-content: space-between;
}

.social-post__platform,
.media-mention__meta span {
  background: #e7f5ec;
  color: #1f6b3a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  text-transform: uppercase;
}

.social-post__title,
.media-mention__title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.social-post__title a,
.media-mention__title a {
  color: var(--fg);
  text-decoration: none;
}

.social-post__title a:hover,
.media-mention__title a:hover {
  color: var(--acc);
  text-decoration: none;
}

.social-post__excerpt,
.media-mention p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.social-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.social-post__actions a,
.media-mention__link {
  color: var(--acc);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.social-post__actions a:hover,
.media-mention__link:hover {
  text-decoration: underline;
}

.media-mentions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.media-mention {
  display: grid;
  gap: 0.55rem;
}

.media-empty {
  border: 1px dashed #b8c8bc;
  color: var(--muted);
  margin: 0;
  padding: 1rem;
}

@media (max-width: 980px) {
  .media-hub__layout {
    grid-template-columns: 1fr;
  }

  .media-panel--social {
    position: static;
  }
}

@media (max-width: 640px) {
  .media-panel {
    padding: 1rem;
  }

  .media-panel__header {
    display: block;
  }

  .social-sources {
    grid-template-columns: 1fr;
  }

  .social-source {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .social-source__open {
    grid-column: 2;
    justify-self: start;
  }

  .social-feed {
    grid-template-columns: 1fr;
  }
}

