/* assets/css/inadhled.css
 * Klientský vzhled pro tomh.cloudmc.cz (dokument 12 — architektura).
 * Hodnoty vytazene ze zive sablony
 * www.inadhled.live/templates/hospital_magazine/css/stylesheet.css
 * (Open Sans + Playfair Display, delici linky #d9d9d9, perex #333,
 * popisek reklamy #848484 kurzivou, nahled clanku 300px vlevo,
 * specialy jako cislo + text + nahled 80px vpravo).
 * Nejde o kopii Bootstrapu 3 / stare jQuery sablony - jen o barevnost,
 * typografii a rozvrzeni.
 */

:root {
  --ih-bg: #fff;
  --ih-text: #333;
  --ih-text-light: #777;
  --ih-ad-label: #848484;
  --ih-rule: #d9d9d9;
  --ih-header-bg: #333;
  --ih-accent-green: #0C632B;
  --ih-accent-gold: #c6921c;
  --ih-accent-red: #A21B1B;
  --ih-link: #064c7c;
  --ih-font-body: 'Open Sans', Arial, sans-serif;
  --ih-font-heading: 'Playfair Display', Georgia, serif;
  --ih-maxwidth: 1170px;
}

* { box-sizing: border-box; }

.ih-page {
  margin: 0;
  font-family: var(--ih-font-body);
  font-size: 16px;
  color: var(--ih-text);
  background: var(--ih-bg);
  text-rendering: optimizeLegibility;
}
.ih-page a { color: var(--ih-link); text-decoration: none; transition: color .25s ease; }
.ih-page a:hover { color: var(--ih-accent-red); }
.ih-page img { max-width: 100%; }

/* ---------- Wallpaper / branding na pozadi ----------
   Obrazek je na <body>, klikatelna plocha je fixni vrstva pod obsahem.
   Obsah je v neprusvitnem .ih-shell, takze prokliky v obsahu funguji
   a banner je videt jen v okrajich. Pod 1280px se skryva (na mobilu
   neni misto po stranach). */
.ih-wallpaper-link { display: none; }

@media (min-width: 1280px) {
  body.ih-has-wallpaper {
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  body.ih-has-wallpaper .ih-wallpaper-link {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
  }
  body.ih-has-wallpaper .ih-shell {
    position: relative;
    z-index: 1;
    max-width: var(--ih-maxwidth);
    margin: 0 auto;
    background: var(--ih-bg);
    box-shadow: 0 0 30px rgba(0,0,0,.16);
  }
}

/* ---------- Hlavicka ---------- */
.ih-header { background: #fff; }
.ih-header-top {
  max-width: var(--ih-maxwidth); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ih-logo img { max-width: 200px; height: auto; display: block; }

.ih-header-banners { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; flex-wrap: wrap; }
.ih-header-banners img { max-height: 62px; width: auto; display: block; }
.ih-header-banners a { display: block; transition: opacity .2s ease; }
.ih-header-banners a:hover { opacity: .85; }

.ih-mini-nav { margin-left: auto; font-size: .8rem; color: var(--ih-text-light); white-space: nowrap; }

/* ---------- Menu ---------- */
.ih-nav {
  max-width: var(--ih-maxwidth); margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 4px 22px;
  border-bottom: 1px solid var(--ih-rule);
}
.ih-nav a {
  position: relative;
  color: var(--ih-text);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 14px 0 12px;
  white-space: nowrap;
}
.ih-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--ih-accent-green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.ih-nav a:hover, .ih-nav a.active { color: var(--ih-accent-green); }
.ih-nav a:hover::after, .ih-nav a.active::after { transform: scaleX(1); }

.ih-prefix {
  max-width: var(--ih-maxwidth); margin: 10px auto 0; padding: 0 20px;
  color: var(--ih-text-light); font-size: .8rem;
}

/* ---------- Rozvrzeni: hlavni sloupec + bocni sloupec ---------- */
.ih-container { max-width: var(--ih-maxwidth); margin: 0 auto; padding: 18px 20px 30px; }
.ih-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 34px;
  align-items: start;
}
.ih-main { min-width: 0; border-right: 1px solid var(--ih-rule); padding-right: 30px; }

.ih-page-title {
  font-family: var(--ih-font-heading); font-size: 2rem; font-weight: 700;
  margin: 0 0 18px; color: #222;
}

/* ---------- Hlavni (leading) clanek ---------- */
.ih-lead { padding-bottom: 22px; border-bottom: 1px solid var(--ih-rule); margin-bottom: 22px; }
.ih-lead-image { display: block; overflow: hidden; }
.ih-lead-image img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform .4s ease; }
.ih-lead:hover .ih-lead-image img { transform: scale(1.03); }
.ih-lead-title {
  font-family: var(--ih-font-heading); font-size: 1.9rem; line-height: 1.25;
  letter-spacing: .02em; margin: 8px 0 10px;
}
.ih-lead-title a { color: #222; }
.ih-lead:hover .ih-lead-title a { color: var(--ih-accent-red); }

/* ---------- Radek clanku (nahled vlevo) ---------- */
.ih-row {
  display: flex; gap: 22px; align-items: flex-start;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--ih-rule);
}
.ih-row-thumb { flex: 0 0 240px; display: block; overflow: hidden; }
.ih-row-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform .4s ease; }
.ih-row:hover .ih-row-thumb img { transform: scale(1.05); }
.ih-row-text { flex: 1 1 auto; min-width: 0; }
.ih-row h3 {
  font-family: var(--ih-font-heading); font-size: 1.35rem; line-height: 1.3;
  letter-spacing: .02em; margin: 4px 0 8px;
}
.ih-row h3 a { color: #222; }
.ih-row:hover h3 a { color: var(--ih-accent-red); }

.ih-art-meta { color: var(--ih-text-light); font-size: .78rem; }
.ih-perex { color: var(--ih-text); font-size: .92rem; line-height: 1.6; text-align: justify; margin: 0; }

/* ---------- Banner mezi clanky ---------- */
.ih-inline-banner { margin: 6px 0 24px; text-align: center; }
.ih-inline-banner img { max-width: 100%; height: auto; }
.ih-inline-banner .banner-container { display: inline-block; line-height: 0; }

.ih-ad-label { color: var(--ih-ad-label); font-style: italic; font-size: .8rem; margin-bottom: 4px; text-align: left; }

/* ---------- Bocni sloupec ---------- */
.ih-sidebar { display: flex; flex-direction: column; gap: 24px; }

.ih-side-heading {
  font-family: var(--ih-font-heading); font-size: 1.6rem; font-weight: 700;
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ih-rule);
  color: #222;
}
.ih-side-arrow { color: var(--ih-accent-green); font-size: 1rem; vertical-align: middle; }

.ih-specials { display: flex; flex-direction: column; }
.ih-special {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px; border-bottom: 1px solid var(--ih-rule);
  transition: background .2s ease;
}
.ih-special:last-child { border-bottom: none; }
.ih-special:hover { background: #f5f5f5; }
.ih-special-num {
  flex: 0 0 30px; text-align: center; font-size: 1.9rem; font-weight: 700;
  color: var(--ih-text); line-height: 1;
}
.ih-special-title { flex: 1 1 auto; font-size: .88rem; font-weight: 700; line-height: 1.35; color: var(--ih-text); }
.ih-special:hover .ih-special-title { color: var(--ih-accent-red); }
.ih-special-thumb { flex: 0 0 80px; }
.ih-special-thumb img { width: 80px; height: 55px; object-fit: cover; display: block; }

.ih-side-banner { text-align: center; }
.ih-side-banner img { max-width: 100%; height: auto; transition: opacity .2s ease; }
.ih-side-banner a:hover img { opacity: .88; }
.ih-side-banner .banner-container { line-height: 0; }

/* ---------- Detail clanku ---------- */
.ih-breadcrumbs { font-size: .8rem; color: var(--ih-text-light); margin-bottom: 18px; }
.ih-breadcrumbs span { color: var(--ih-text); }
.ih-article-title {
  font-family: var(--ih-font-heading); font-size: 2.1rem; font-weight: 700;
  line-height: 1.25; margin: 0 0 16px; color: #222;
}
.ih-article-image { width: 100%; height: auto; display: block; margin-bottom: 14px; }
.ih-article-date { color: var(--ih-text-light); font-size: .85rem; margin-bottom: 12px; }
.ih-article-body { font-size: 1rem; line-height: 1.75; text-align: justify; }
.ih-article-body p { margin: 0 0 1.1em; }
.ih-article-body img { max-width: 100%; height: auto; }

/* ---------- Paticka ---------- */
.ih-footer { background: var(--ih-header-bg); color: #bbb; margin-top: 30px; }
.ih-footer-inner {
  max-width: var(--ih-maxwidth); margin: 0 auto; padding: 26px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .85rem;
}
.ih-footer a { color: #ddd; }
.ih-footer a:hover { color: #fff; }
.ih-footer-brand { font-family: var(--ih-font-heading); font-size: 1.3rem; color: #fff; }
.ih-footer-brand span { display: block; font-family: var(--ih-font-body); font-size: .78rem; color: #999; }
.ih-footer-links { display: flex; gap: 16px; }
.ih-footer-copy { margin-left: auto; color: #999; }

/* ---------- Responzivita (1920 / 1024 / 390) ---------- */
@media (max-width: 1024px) {
  .ih-layout { grid-template-columns: 1fr; }
  .ih-main { border-right: none; padding-right: 0; }
  .ih-sidebar { flex-direction: row; flex-wrap: wrap; }
  .ih-sidebar > * { flex: 1 1 280px; }
}
@media (max-width: 640px) {
  .ih-header-top { gap: 12px; }
  .ih-mini-nav { margin-left: 0; width: 100%; }
  .ih-nav { gap: 0 14px; }
  .ih-nav a { font-size: .74rem; padding: 10px 0 8px; }
  .ih-row { flex-direction: column; gap: 10px; }
  .ih-row-thumb { flex: 1 1 auto; width: 100%; }
  .ih-row-thumb img { height: 200px; }
  .ih-lead-image img { height: 220px; }
  .ih-lead-title { font-size: 1.45rem; }
  .ih-article-title { font-size: 1.5rem; }
  .ih-sidebar { flex-direction: column; }
  .ih-perex, .ih-article-body { text-align: left; }
}
