/* =========================================================================
   Hippo – styly vlastních bloků (Hlavní strana, Hroší kůže, karty článků).
   Barvy a písma berou proměnné z Neve (Vzhled → Přizpůsobit), takže změna
   v Přizpůsobení se propíše i sem. Třídy hippo-* Neve nikdy nemění.
   ========================================================================= */
:root {
  --hippo-bg: var(--nv-site-bg, #121212);
  --hippo-card: var(--nv-light-bg, #1a1a1a);
  --hippo-card2: #242424;
  --hippo-line: #333;
  --hippo-muted: #8d8d8d;
  --hippo-text: var(--nv-text-color, #e0e0e0);
  --hippo-white: var(--nv-secondary-accent, #fff);
  --hippo-radius: 30px;
  --hippo-gap: clamp(0.9rem, 2.4vw, 1.6rem);
  --hippo-head: var(--headingsfontfamily, Poppins), system-ui, sans-serif;
}

/* Neve je klasická šablona: skupina má vnitřní obal „__inner-container“. U skupin Hippo ho
   „zprůhledníme“, aby mřížka/flex ze třídy hippo-* platila přímo pro bloky uvnitř. */
[class*="hippo-"] > .wp-block-group__inner-container { display: contents; }

/* Stránky postavené z bloků Hippo: obsah přes celou šířku kontejneru Neve */
.hippo-page { display: grid; gap: var(--hippo-gap); padding-block: clamp(0.5rem, 2vw, 1.5rem) 1rem; }
.hippo-page > * { min-width: 0; margin-block: 0 !important; }
.hippo-page p { margin-block: 0 0 0.6em; }

/* ---------- společné prvky ---------- */
.hippo-card { background: var(--hippo-card); border-radius: var(--hippo-radius); overflow: hidden; }
.hippo-pill {
  display: grid; place-items: center; text-align: center; min-height: 2.4em; line-height: 1.2; margin: 0 !important;
  font-family: var(--hippo-head); font-weight: 700; font-size: clamp(0.8rem, 2.4vw, 1.6rem); color: var(--hippo-white);
  background: var(--hippo-card); border-radius: 20px; padding: 0.35rem 0.6rem;
}
.hippo-btn a, a.hippo-btn, .hippo-card .wp-block-read-more {
  display: inline-block; background: var(--hippo-card2); color: var(--hippo-white) !important; text-decoration: none !important;
  font-size: 0.85rem; font-weight: 600; padding: 0.45rem 1.1rem; border-radius: 10px; border: 1px solid var(--hippo-line);
  text-shadow: none !important;
}
.hippo-btn a:hover, a.hippo-btn:hover, .hippo-card .wp-block-read-more:hover { background: var(--hippo-white); color: #000 !important; }
.hippo-allblog { text-align: center; margin-top: 1.5rem !important; }
.hippo-allblog a {
  display: inline-block; background: var(--hippo-card2); border: 1px solid var(--hippo-line); border-radius: 12px;
  padding: 0.7rem 1.6rem; text-decoration: none; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--hippo-white);
}
.hippo-allblog a:hover { background: var(--hippo-white); color: #000; }
.hippo-gray img, img.hippo-gray { filter: grayscale(1); }

/* ---------- ÚVOD: horní řada ---------- */
.hippo-top {
  --toph: clamp(8.5rem, 25vw, 21rem);
  display: grid !important; gap: 0.8rem var(--hippo-gap);
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); grid-template-rows: var(--toph) auto; grid-auto-flow: column;
}
.hippo-top > * { margin: 0 !important; min-width: 0; }
.hippo-hero.wp-block-cover { min-height: 0 !important; height: var(--toph); border-radius: var(--hippo-radius); padding: clamp(0.5rem, 2vw, 1.5rem) 1rem; align-items: flex-start; }
.hippo-hero .wp-block-cover__image-background { object-position: center 35% !important; filter: grayscale(1); }
.hippo-hero .wp-block-cover__background { background: linear-gradient(#0000 40%, #000a) !important; opacity: 1 !important; }
.hippo-hero h1, .hippo-hero h2 { margin: 0; font-size: clamp(1.3rem, 5.5vw, 4.2rem); color: #fff; text-shadow: 0 2px 14px #000a; }
.hippo-hero a { color: inherit; text-decoration: none; }
.hippo-hero .wp-block-cover__inner-container { width: 100%; text-align: center; }
.hippo-portrait { height: var(--toph); border-radius: var(--hippo-radius); overflow: hidden; background: #000; }
.hippo-portrait img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center top; filter: grayscale(1); }

/* ---------- ÚVOD: Psycholog / Konzultant / Lektor ---------- */
.hippo-trio { gap: var(--hippo-gap) !important; margin: 0 !important; }
.hippo-trio > .wp-block-column {
  background: var(--hippo-card); border-radius: var(--hippo-radius); padding: clamp(1.1rem, 3vw, 1.8rem);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.hippo-trio .hippo-icon { margin: 0 auto !important; width: min(60%, 12rem); }
.hippo-trio .hippo-icon img { border-radius: 28px; filter: brightness(55%) contrast(200%) saturate(0%); }
.hippo-trio h2 { text-align: center; font-size: 1.35rem; letter-spacing: 0.04em; margin: 0; }
.hippo-trio .hippo-trio__text { font-size: 0.95rem; line-height: 1.6; flex: 1; }
.hippo-trio .hippo-trio__text p { margin: 0 0 0.25em; }
.hippo-trio .hippo-trio__text p:first-child::first-letter { float: left; font-size: 2.6em; line-height: 0.9; margin: 0.08em 0.12em 0 0; font-family: var(--hippo-head); }
.hippo-trio strong { color: var(--hippo-white); }
.hippo-trio .hippo-photo { margin: auto auto 0 !important; width: min(80%, 14rem); }
.hippo-trio .hippo-photo img { aspect-ratio: 1; object-fit: cover; filter: grayscale(1); border-radius: 30px 6px 30px 6px; }
.hippo-trio .hippo-photo.is-style-b img, .hippo-trio .hippo-photo--b img { border-radius: 6px 30px 6px 30px; }

/* ---------- karty článků (Query Loop) ---------- */
.hippo-posts { margin: 0 !important; }
.hippo-posts .wp-block-post-template { list-style: none; margin: 0; padding: 0; gap: var(--hippo-gap) !important; }
.hippo-posts .wp-block-post { margin: 0; display: flex; }
.hippo-posts .hippo-card { width: 100%; display: flex; flex-direction: column; border-radius: 22px; }
.hippo-card .wp-block-post-featured-image { margin: 0 !important; background: #000; aspect-ratio: 16 / 10; overflow: hidden; }
.hippo-card .wp-block-post-featured-image img { width: 100%; height: 100% !important; object-fit: cover; filter: grayscale(1); transition: filter 0.3s; }
.hippo-card:hover .wp-block-post-featured-image img { filter: grayscale(0.1); }
.hippo-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.hippo-card__body > * { margin: 0 !important; }
.hippo-card .wp-block-post-title { font-size: 1.35rem; line-height: 1.2; }
.hippo-card .wp-block-post-title a { text-decoration: none; color: var(--hippo-white); }
.hippo-card .wp-block-post-title a:hover { text-decoration: underline; }
.hippo-card .wp-block-post-excerpt { font-size: 0.97rem; line-height: 1.55; flex: 1; }
.hippo-card .wp-block-post-excerpt__excerpt { margin: 0; }
.hippo-card .wp-block-read-more { align-self: flex-start; }
.hippo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; font-size: 0.8rem; color: var(--hippo-muted); }
.hippo-meta > * { margin: 0 !important; }
.hippo-meta a, .hippo-card .taxonomy-category a { color: var(--hippo-muted); text-decoration: underline; text-decoration-color: #555; }
.hippo-meta a:hover, .hippo-card .taxonomy-category a:hover { color: var(--hippo-white); }
.hippo-card .taxonomy-category { font-size: 0.85rem; color: var(--hippo-muted); }
.hippo-meta .wp-block-post-author { display: flex; align-items: center; gap: 0.35rem; }
.hippo-meta .wp-block-post-author__avatar img { width: 1.4rem; height: 1.4rem; border-radius: 50%; }
.hippo-meta .wp-block-post-author__content p { margin: 0; font-size: inherit; }

/* velká karta (první článek) */
.hippo-feat .hippo-card { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--hippo-radius); }
.hippo-feat .wp-block-post-featured-image { aspect-ratio: 4 / 3; }
.hippo-feat .hippo-card__body { padding: clamp(1.1rem, 3vw, 2rem); justify-content: center; }
.hippo-feat .wp-block-post-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
@media (min-width: 52rem) {
  .hippo-feat .hippo-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hippo-feat .wp-block-post-featured-image { aspect-ratio: auto; height: 100%; }
  .hippo-feat--r .hippo-card .wp-block-post-featured-image { order: 2; }
}
/* střídání stran u řádkových karet (Hroší kůže) */
@media (min-width: 52rem) {
  .hippo-rows .wp-block-post:nth-child(odd) .hippo-card .wp-block-post-featured-image { order: 2; }
}
.hippo-rows .wp-block-post-template { display: grid; }

/* ---------- stránkování ---------- */
.hippo-posts .wp-block-query-pagination { justify-content: center; gap: 0.4rem; margin-top: 2rem; font-weight: 600; }
.hippo-posts .wp-block-query-pagination a, .hippo-posts .wp-block-query-pagination .page-numbers {
  display: inline-block; min-width: 2.4rem; text-align: center; padding: 0.35rem 0.6rem; border-radius: 10px; text-decoration: none; color: var(--hippo-text);
}
.hippo-posts .wp-block-query-pagination a:hover { background: var(--hippo-card2); }
.hippo-posts .wp-block-query-pagination .current { background: var(--hippo-white); color: #000; }

/* ---------- KONTAKT ---------- */
.hippo-contact { gap: var(--hippo-gap) !important; margin: 0 !important; }
.hippo-contact > .wp-block-column { background: var(--hippo-card); border-radius: var(--hippo-radius); padding: clamp(1.2rem, 3vw, 2rem); }
.hippo-contact strong { color: var(--hippo-white); }
.hippo-contact__ico { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 0.8rem; border-radius: 50%; background: var(--hippo-card2); }
.hippo-contact__ico svg { width: 1.5rem; height: 1.5rem; stroke: var(--hippo-white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hippo-contact__mail { text-align: center; font-family: var(--hippo-head); font-weight: 600; font-size: clamp(1.15rem, 3.4vw, 1.6rem) !important; overflow-wrap: anywhere; }
.hippo-contact__mail a { color: var(--hippo-white); text-decoration: none; }
.hippo-contact__small { font-size: 0.92rem; }
.hippo-contact hr { margin-block: 1.4rem; border: 0; border-top: 1px solid var(--hippo-line); opacity: 1; }

/* ---------- HROŠÍ KŮŽE: hlavička a manifest ---------- */
.hippo-hkhero { align-items: center !important; gap: var(--hippo-gap) !important; margin: 0 !important; padding-top: clamp(1rem, 4vw, 3rem); }
.hippo-hkhero .hippo-carousel { transform: rotate(-3deg); border: 6px solid #fff; border-radius: 2px; box-shadow: 0 10px 30px #000a; margin: 0.5rem 0.6rem; }
.hippo-hklogo { text-align: center; }
.hippo-hklogo p { font-family: var(--hippo-head); font-weight: 700; color: #fff; margin: 0; }
.hippo-hklogo .hippo-hklogo__t { font-size: 1.4rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.hippo-hklogo .hippo-hklogo__s { font-size: 1.5rem; line-height: 1.1; max-width: 12ch; margin: 0.4rem auto 0; }
.hippo-hklogo figure { margin: 0 auto !important; width: min(78%, 18rem); }
.hippo-hklogo img { filter: none !important; }
.hippo-manifest { align-items: center !important; gap: var(--hippo-gap) !important; margin: 0 !important; padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.hippo-manifest .hippo-tilt-l { transform: rotate(-3deg); }
.hippo-manifest .hippo-tilt-r { transform: rotate(3deg); }
.hippo-manifest figure img, .hippo-manifest .hippo-carousel { aspect-ratio: 1; object-fit: cover; filter: grayscale(1); box-shadow: 0 10px 30px #000a; }
.hippo-quote {
  border-left: 4px solid #fff; padding-left: 1.2rem; transform: rotate(2deg);
  font-family: var(--hippo-head); font-size: clamp(1rem, 2.2vw, 1.25rem); line-height: 1.5; font-style: italic;
}
.hippo-quote p { margin: 0 0 0.45em; }
.hippo-quote strong { color: var(--hippo-white); }
.hippo-quote .hippo-quote__end { text-align: right; font-weight: 700; color: var(--hippo-white); margin-top: 0.8rem; }

/* ---------- karusel (Galerie s třídou hippo-carousel) ---------- */
.hippo-carousel.wp-block-gallery { position: relative; display: block !important; overflow: hidden; background: #000; aspect-ratio: var(--hippo-ratio, 1 / 1); margin: 0; }
.hippo-carousel.wp-block-gallery > figure.wp-block-image {
  position: absolute !important; inset: 0; width: 100% !important; height: 100%; margin: 0 !important;
  opacity: 0; transition: opacity 0.9s ease;
}
/* bez JavaScriptu je vidět první obrázek; s JavaScriptem ten aktivní (selektor musí být silnější než výchozí opacity: 0) */
.hippo-carousel.wp-block-gallery > figure.wp-block-image:first-of-type,
.hippo-carousel.wp-block-gallery > figure.wp-block-image[data-active='true'] { opacity: 1; }
.hippo-carousel.is-ready > figure.wp-block-image:first-of-type:not([data-active='true']) { opacity: 0; }
.hippo-carousel.wp-block-gallery figure img { width: 100% !important; height: 100% !important; object-fit: cover; filter: grayscale(1); transition: filter 0.5s; }
.hippo-carousel--color:hover figure img, .hippo-carousel--color.is-color figure img { filter: none; }
.hippo-carousel--wide { --hippo-ratio: 1792 / 1024; }
.hippo-carousel__pause {
  position: absolute; right: 0.5rem; bottom: 0.5rem; z-index: 2; opacity: 0; transition: opacity 0.2s;
  background: #000a; color: #fff; border: 1px solid #fff5; border-radius: 8px; font-size: 0.7rem; padding: 0.3rem 0.5rem; cursor: pointer;
}
.hippo-carousel:hover .hippo-carousel__pause, .hippo-carousel__pause:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hippo-carousel > figure { transition: none !important; } }

/* ---------- mobil ---------- */
/* Sloupce pod 782 px skládá pod sebe už WordPress sám. */
@media (max-width: 781px) {
  .hippo-manifest > .wp-block-column { width: min(100%, 22rem); margin-inline: auto; }
  .hippo-hkhero .hippo-carousel { margin: 0.5rem 0.9rem; }
}

/* ---------- štítky pod článkem (Neve: .nv-tags-list) ---------- */
.nv-tags-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.nv-tags-list > span:not(.screen-reader-text) { margin-right: 0.3rem; color: var(--hippo-muted); }
.nv-tags-list a {
  margin: 0 !important; padding: 0.3rem 0.85rem; line-height: 1.3;
  font-size: 0.85rem !important; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--hippo-text) !important; background: var(--hippo-card2); border: 1px solid var(--hippo-line); border-radius: 12px;
  text-decoration: none; text-shadow: none; transition: background 0.2s, color 0.2s;
}
.nv-tags-list a::before { content: '#'; color: var(--hippo-muted); margin-right: 0.15em; }
.nv-tags-list a:hover, .nv-tags-list a:focus-visible { background: var(--hippo-white); color: #000 !important; }
.nv-tags-list a:hover::before { color: #555; }
