/*
 * style_beta.css — Richard Golian Blog Beta
 * Loaded after style_observer.css as an override layer.
 * New editorial layout: warm background, EB Garamond headings, Inter UI.
 */

/* ── ZÁKLAD ── */
body { background-color: #f5f3f0; }

/* ── OPRAVA: search kontajner má white bg v origináli ── */
.search { background-color: transparent; }
.search .text {
  background: transparent;
  border: 1px solid #b8b0a6;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  color: #536574;
}
.search .text:focus { outline: none; border-color: #536574; background: rgba(255,255,255,0.65); }
.search .text::placeholder { color: #aaa39a; }

/* ── SIDEBAR ── */
.contact-card p, .telo .pc > p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #536574;
}
.socialmedia img {
  width: 22px; height: 22px; border-radius: 4px;
  opacity: 0.55; transition: opacity 0.2s; margin: 0 1px;
}
.socialmedia img:hover { opacity: 1; }

/* ── Hashtags v PC sidebar ── */
.pc-hashtags {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.9;
  color: #536574;
  margin-bottom: 8px;
}

/* ── PC sidebar — zjednotenie všetkých textových liniek ──
   Výnimky: .meno (meno = Gideon Roman/vlastný štýl), .socialmedia (ikony), .sidebar-rss-a (RSS blok) */
.telo .pc a:not(.meno):not(.socialmedia):not(.sidebar-rss-a) {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #536574;
  text-decoration: underline;
  text-decoration-color: rgba(83,101,116,0.3);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.telo .pc a:not(.meno):not(.socialmedia):not(.sidebar-rss-a):hover {
  color: #1a2128;
  text-decoration-color: rgba(26,33,40,0.5);
}

/* ── RSS sidebar block — hover override pre elegant (base štýly sú v style_observer.css) ── */
.sidebar-rss-a:hover .sidebar-rss-sub {
  color: #1a2128 !important;
  text-decoration-color: rgba(26,33,40,0.5);
}

/* ── RSS link — hover (starý jednoduchý odkaz, zachovaný pre spätnú kompatibilitu) ── */
.rss-link-elegant { opacity: 0.55; transition: opacity 0.2s; color: #1a2128 !important; }
.rss-link-elegant:hover { opacity: 1; color: #1a2128 !important; }


/* ── Consent-box — light theme override (prepíše tmavé štýly z style_observer.css) ── */
.consent-box {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px;
  font-size: 12px; line-height: 1.5; color: #778998; margin-top: 0;
}
.consent-box input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: auto; height: auto; cursor: pointer; }
.consent-box label {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 400;
  color: #778998; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.consent-box label a,
.consent-box label a:visited {
  color: #536574 !important; text-decoration: underline;
  text-decoration-color: rgba(83,101,116,0.3);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.consent-box label a:hover { color: #1a2128 !important; text-decoration-color: rgba(26,33,40,0.5) !important; }

/* ── ARTICLE LINK — shared wrapper ── */
/* Fixes: #uvod_clanok a { font-weight: bold } from original CSS */
#uvod_clanok .article-link,
#uvod_clanok .article-category a {
  font-weight: normal;
  text-decoration: none;
}
#uvod_clanok .article-link:hover { text-decoration: none; }

.article-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.article-link:hover .article-title,
.article-link:hover .card-title { text-decoration: underline; }

/* ── HASHTAG LABELS ── */
.article-category {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #778998;
  margin-bottom: 6px;
}
.article-category a {
  color: #536574;
  text-decoration: none;
  margin-right: 4px;
}
.article-category a:hover { color: #3d5260; text-decoration: underline; }

/* ── FEATURED ARTICLE ── */
.article-featured { margin-bottom: 28px; }

.featured-photo {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  display: block;
  margin-bottom: 14px;
}

.article-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a2128;
  margin-bottom: 8px;
  display: block;
}

.article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #778998;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-excerpt {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: #3a4650;
  margin-bottom: 8px;
}

/* ── ARTICLES LIST ── */
.articles-list { border-top: 1px solid #e8e4df; }

/* Prvá karta — bez top paddingu, hneď pod logom */
.article-card--top {
  padding-top: 0;
  border-bottom: none;
}

/* Featured vnútri listu — border-bottom ako ostatné karty */
.article-featured--inlist {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid #e8e4df;
  display: flex;
  flex-direction: column;
}
.article-featured--inlist .featured-photo-link { display: block; }
.article-featured--inlist .featured-photo { margin-bottom: 14px; }

/* ── ARTICLE CARD (text + thumbnail) ── */
.article-card {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #e8e4df;
}

.card-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a2128;
  margin-bottom: 6px;
  display: block;
}

.card-excerpt {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  color: #536574;
  margin-bottom: 8px;
}

.card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #778998;
  display: flex;
  gap: 10px;
  align-items: center;
}
.card-meta span:empty,
.article-meta span:empty { display: none; }

.article-card--no-photo { grid-template-columns: 1fr; }

.card-photo-link { display: block; align-self: start; margin-top: 26px; }
.card-photo { width: 130px; height: 90px; background-size: cover; background-position: center; }

/* ── TEXT-ONLY ARTICLE ── */
.article-text-only {
  padding: 22px 0;
  border-bottom: 1px solid #e8e4df;
}
.article-text-only .card-title { font-size: 20px; }

/* ── VIEWS ICON ── */
.views-icon { display: inline-flex; align-items: center; gap: 4px; }

/* ── VISUALLY HIDDEN — sémantické H1/H2 viditeľné pre Google a AI, nie pre čitateľa ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── H2 reset — prepisuje #uvod_clanok h2 { display:inline; font-size:19px } zo style_observer.css ──
   Specificita: #uvod_clanok h2.card-title = (1,1,1) > #uvod_clanok h2 = (1,0,1) ✓ */
#uvod_clanok h2.card-title {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a2128;
  margin: 0 0 6px 0;
  padding: 0;
}
#uvod_clanok h2.article-title {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a2128;
  margin: 0 0 6px 0;
  padding: 0;
}
#uvod_clanok .article-text-only h2.card-title {
  font-size: 20px;
}

/* ── SEARCH PAGE — topic / section header ────────────────────────────────────
   Zobrazuje sa nad zoznamom článkov na /search/* stránkach.
   Vizuálne odlišné od článkových kariet — editoriálny štýl. */
.search-topic-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e4df;
}
/* Zvýšená špecificita — prepisuje h1 pravidlá zo style_observer.css */
#uvod_clanok .search-topic-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 30px;
  color: #3a3632;
  margin: 0 0 10px 0;
  display: block;
}
#uvod_clanok .search-topic-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: #778998;
  margin: 0;
}
#uvod_clanok .search-topic-desc a,
#uvod_clanok .search-topic-desc a strong,
#uvod_clanok .search-topic-desc a b {
  color: #536574;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(83,101,116,0.3);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
#uvod_clanok .search-topic-desc a:hover {
  color: #1a2128;
  text-decoration-color: rgba(26,33,40,0.5);
}

/* ── SPACING CONSISTENCY ──────────────────────────────────────────────────────
   Vysoká špecificita (ID + class) prepisuje prípadné konflikty zo style_observer.css.
   Zaručuje rovnakú medzeru nad aj pod každou oddeľovacou čiarou. */
#uvod_clanok .article-card              { padding-top: 22px; padding-bottom: 22px; }
#uvod_clanok .article-card--top         { padding-top: 0;    padding-bottom: 22px; }
#uvod_clanok .article-featured--inlist  { margin-top: 0;     padding-top: 22px; padding-bottom: 22px; }
#uvod_clanok .article-text-only         { padding-top: 22px; padding-bottom: 22px; }

/* ── Min-height jadra — footer je vnútri .telo, takže min-height musí byť na .jadro
   (nie .telo), aby footer prišiel AŽ za pravý stĺpec (.pc, position:absolute).
   1000px = bezpečný CSS fallback; JS v header_elegant.php to spresní po fontoch. */
@media (min-width: 771px) {
  .jadro { min-height: 1000px; }
  .footer-nl-mobile-only { display: none; }
}

/* ── MOBILNÁ RESPONZIVITA ── */
@media (max-width: 770px) {

  /* 46px = kompenzuje margin-bottom: -45px bannera + pridáva 22px medzeru pod bannerom */
  .telo { margin-top: 46px; }

  /* Karty s thumbnailom — flexbox, poradie: hashtag → foto → text → meta */
  .article-card {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .article-card .card-content { display: contents; }
  .article-card .article-category { order: 1; }
  .article-card .card-photo-link { order: 2; }
  .article-card .article-link { order: 3; }
  .article-card .card-meta { order: 4; }

  /* Thumbnail — plnošírkový obrázok medzi hashtagmi a textom */
  .card-photo-link {
    display: block;
    margin: 0 -22px 14px -22px;
    width: calc(100% + 44px);
  }
  .card-photo {
    width: 100%;
    height: 180px;
  }

  /* Featured: mobile — hashtagy nad fotou, foto plnošírkové */
  .article-featured--inlist .featured-photo-link {
    margin-left: -22px;
    margin-right: -22px;
    width: calc(100% + 44px);
  }

  /* Plnošírková fotka — len výška, šírku zdedí od featured-photo-link */
  .featured-photo {
    height: 200px;
  }

  /* Prvá karta — štandardný top padding na mobile */
  #uvod_clanok .article-card--top { padding-top: 16px; }

}

/* ── Mini audio play button on article cards ── */
.audio-mini-btn {
  flex-shrink: 0;
  background: rgba(26,33,40,0.07); border: 0; outline: 0;
  -webkit-appearance: none; appearance: none;
  box-shadow: none;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px; margin: 0; vertical-align: middle;
  border-radius: 12px;
  transition: background 0.15s;
}
.audio-mini-btn:focus, .audio-mini-btn:active { outline: 0; border: 0; box-shadow: none; }
.audio-mini-btn:hover { background: rgba(26,33,40,0.14); }
.audio-mini-btn svg { width: 14px; height: 14px; border: none; }
.audio-mini-btn.is-playing { background: rgba(26,33,40,0.14); }

/* ── Premium mobile nav bar ──
   Zobrazuje sa len na mobile — Pricing + Manage subscription link.
   Na desktope sú tieto linky v pravom stĺpci (.pc sidebar). */
.prem-mob-bar { display: none; }

@media (max-width: 770px) {
  .prem-mob-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
    margin-bottom: 8px;
    margin-top: 6px;
    background: #f5f3f0;
    border-radius: 0;
    border-bottom: 1px solid #ddd8d0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
  }
  .prem-mob-primary {
    display: flex;
    align-items: center;
  }
  .prem-mob-bar a {
    color: #536574;
    text-decoration: none;
  }
  .prem-mob-bar a:hover { color: #1a2128; }
  .prem-mob-bar .prem-mob-manage {
    color: #4a7c59 !important;
    font-weight: 500;
  }
  .prem-mob-bar .prem-mob-restore {
    color: #778998;
  }
  .prem-mob-sep { color: #b8b0a6; font-size: 12px; margin: 0 10px; }
  .prem-mob-toggle {
    margin-left: auto;
    background: none;
    border: none;
    padding: 2px 0 2px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
  }
  .prem-mob-toggle.open { transform: rotate(180deg); }
  .prem-mob-extras {
    display: none;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #e8e4df;
  }
  .prem-mob-extras.open { display: flex; align-items: center; }
}
