/* ============================================================
   FOKAL — modern tech magazine template
   Original design. Font: "Inter" (display aj body)
   ============================================================ */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0e1320;
  --ink-2: #4b5361;
  --ink-3: #8a92a1;
  --line: #e8eaef;
  --accent: #2f6bff;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --dark-card: #101322;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(14, 19, 32, .04), 0 10px 30px -18px rgba(14, 19, 32, .18);
  --shadow-pop: 0 18px 50px -20px rgba(14, 19, 32, .35);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max-w: 1320px;
}

html[data-theme="dark"] {
  --bg: #0c0e16;
  --surface: #141826;
  --ink: #f2f4f8;
  --ink-2: #aeb5c4;
  --ink-3: #6d7484;
  --line: #23283a;
  --accent: #5b8bff;
  --accent-soft: #1a2340;
  --dark-card: #1b2033;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Podfarbenie stránky podľa kategórie ----------
   Tri tóny gradientu sú registrované CSS premenné (@property),
   takže sa dajú PLYNULE animovať. Pri zmene kategórie sa html
   prvku nastaví data-cat a farby sa jemne preleje do odtieňa
   kategórie. Predvolené hodnoty = pôvodná ružová. Prehliadače
   bez @property zmenu ukážu okamžite (bez animácie). */
@property --tint-1 { syntax: "<color>"; inherits: true; initial-value: rgba(255, 90, 140, .16); }
@property --tint-2 { syntax: "<color>"; inherits: true; initial-value: rgba(255, 120, 90, .12); }
@property --tint-3 { syntax: "<color>"; inherits: true; initial-value: rgba(255, 105, 150, .12); }

html {
  --tint-1: rgba(255, 90, 140, .16);
  --tint-2: rgba(255, 120, 90, .12);
  --tint-3: rgba(255, 105, 150, .12);
  transition: --tint-1 1.4s ease, --tint-2 1.4s ease, --tint-3 1.4s ease;
}

html[data-theme="dark"] {
  --tint-1: rgba(120, 80, 255, .14);
  --tint-2: rgba(47, 107, 255, .10);
  --tint-3: rgba(90, 70, 200, .08);
}

/* Odtiene kategórií — zámerne veľmi jemné (alfa ako pôvodné). */
html[data-cat="jedlo-a-recepty"]     { --tint-1: rgba(255, 140, 66, .16); --tint-2: rgba(255, 96, 60, .12);  --tint-3: rgba(255, 170, 80, .12); }
html[data-cat="zdravie-a-sport"]     { --tint-1: rgba(52, 199, 120, .15); --tint-2: rgba(120, 210, 90, .11); --tint-3: rgba(40, 180, 140, .12); }
html[data-cat="cestovanie"]          { --tint-1: rgba(40, 180, 220, .15); --tint-2: rgba(60, 130, 245, .11); --tint-3: rgba(45, 200, 190, .12); }
html[data-cat="osobne-financie"]     { --tint-1: rgba(240, 180, 40, .15); --tint-2: rgba(255, 150, 60, .11); --tint-3: rgba(220, 190, 60, .12); }
html[data-cat="technologie-a-ai"]    { --tint-1: rgba(90, 110, 255, .15); --tint-2: rgba(60, 160, 255, .11); --tint-3: rgba(140, 90, 255, .12); }
html[data-cat="rodina-a-vztahy"]     { --tint-1: rgba(255, 110, 150, .16); --tint-2: rgba(255, 140, 120, .12); --tint-3: rgba(240, 100, 180, .12); }
html[data-cat="styl-a-krasa"]        { --tint-1: rgba(200, 90, 240, .15); --tint-2: rgba(240, 100, 200, .11); --tint-3: rgba(160, 90, 250, .12); }
html[data-cat="vedeli-ste"]          { --tint-1: rgba(110, 90, 250, .15); --tint-2: rgba(80, 140, 250, .11); --tint-3: rgba(170, 110, 250, .12); }
html[data-cat="hobby"]               { --tint-1: rgba(255, 100, 90, .15); --tint-2: rgba(255, 150, 70, .11); --tint-3: rgba(230, 90, 130, .12); }

/* V tmavom režime stlmené verzie tých istých odtieňov. */
html[data-theme="dark"][data-cat="jedlo-a-recepty"]  { --tint-1: rgba(255, 140, 66, .12); --tint-2: rgba(255, 96, 60, .08);  --tint-3: rgba(255, 170, 80, .07); }
html[data-theme="dark"][data-cat="zdravie-a-sport"]  { --tint-1: rgba(52, 199, 120, .12); --tint-2: rgba(120, 210, 90, .08); --tint-3: rgba(40, 180, 140, .07); }
html[data-theme="dark"][data-cat="cestovanie"]       { --tint-1: rgba(40, 180, 220, .12); --tint-2: rgba(60, 130, 245, .08); --tint-3: rgba(45, 200, 190, .07); }
html[data-theme="dark"][data-cat="osobne-financie"]  { --tint-1: rgba(240, 180, 40, .11); --tint-2: rgba(255, 150, 60, .08); --tint-3: rgba(220, 190, 60, .07); }
html[data-theme="dark"][data-cat="technologie-a-ai"] { --tint-1: rgba(90, 110, 255, .13); --tint-2: rgba(60, 160, 255, .09); --tint-3: rgba(140, 90, 255, .08); }
html[data-theme="dark"][data-cat="rodina-a-vztahy"]  { --tint-1: rgba(255, 110, 150, .12); --tint-2: rgba(255, 140, 120, .08); --tint-3: rgba(240, 100, 180, .07); }
html[data-theme="dark"][data-cat="styl-a-krasa"]     { --tint-1: rgba(200, 90, 240, .12); --tint-2: rgba(240, 100, 200, .08); --tint-3: rgba(160, 90, 250, .07); }
html[data-theme="dark"][data-cat="vedeli-ste"]       { --tint-1: rgba(110, 90, 250, .12); --tint-2: rgba(80, 140, 250, .08); --tint-3: rgba(170, 110, 250, .07); }
html[data-theme="dark"][data-cat="hobby"]            { --tint-1: rgba(255, 100, 90, .12); --tint-2: rgba(255, 150, 70, .08); --tint-3: rgba(230, 90, 130, .07); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 92% 4%, var(--tint-1), transparent 62%),
    radial-gradient(760px 480px at 4% 2%, var(--tint-2), transparent 60%),
    radial-gradient(900px 620px at 88% 74%, var(--tint-3), transparent 62%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */

.site-header { padding: 20px 0 0; position: sticky; top: 12px; z-index: 50; transition: top .25s ease; }
.site-header.is-scrolled { top: -20px; } /* kompenzuje padding-top 20px, aby sa nav-card prilepil úplne na okraj okna */
.site-header.is-scrolled .nav-card { border-radius: 0 0 14px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.nav-card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 18px;
  transition: border-radius .25s ease, box-shadow .25s ease;
}

/* ---------- Progress čítania (len na stránke článku) ----------
   Veľmi tenká linka na spodnom okraji hlavného menu. Šírka sa mení
   cez transform: scaleX(--read-progress), čo prehliadač animuje na
   GPU bez prepočtu layoutu. Plná je pri úplnom konci stránky. */
.read-progress {
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
html[data-reading] .read-progress { opacity: 1; }
.read-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff5a8c);
  border-radius: 2px;
  transform: scaleX(var(--read-progress, 0));
  transform-origin: left center;
  transition: transform .08s linear;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff5a8c);
  display: inline-block;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition: .18s;
}

.main-nav a:hover, .main-nav a.active { color: var(--accent); background: var(--accent-soft); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-tagline { font-size: 12.5px; color: var(--ink-3); margin-right: 6px; white-space: nowrap; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: .18s;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 11px;
  font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  transition: .18s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Hero ---------------- */

.hero { text-align: center; padding: 72px 0 40px; }

.hero .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 14px 0 16px;
}

.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent), #ff5a8c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p { max-width: 560px; margin: 0 auto; color: var(--ink-2); font-size: 16px; }

.cat-pills { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 10px; margin-top: 28px; }

.pill {
  display: inline-flex; align-items: center;
  padding: 8px 16px; min-height: 38px; box-sizing: border-box;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; line-height: 1.2;
  color: var(--ink-2);
  cursor: pointer;
  transition: .18s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pill.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ---------------- Masonry grid ---------------- */

.masonry { display: flex; gap: 22px; align-items: flex-start; padding-bottom: 30px; }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.m-item { break-inside: avoid; }
/* vyhľadávanie obrázkov: klasické CSS stĺpce (prekresľuje sa celé, poradie tu nevadí) */
.results-grid { columns: 4 280px; column-gap: 22px; padding-bottom: 30px; }
.results-grid .m-item { margin-bottom: 22px; break-inside: avoid; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.card .thumb { position: relative; overflow: hidden; }
.card .thumb img { width: 100%; aspect-ratio: var(--ar, 4/3.4); object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.045); }

/* --- admin: tlačidlo výmeny obrázka --- */
.img-tools {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  display: flex; gap: 6px;
  opacity: 0; transform: translateY(-3px); transition: opacity .2s ease, transform .2s ease;
}
.card:hover .img-tools, .card.mini .img-tools { opacity: 1; transform: translateY(0); }
.img-reload, .img-tool {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 20, 28, .55); color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(6px); cursor: pointer;
  text-decoration: none; transition: background .18s ease, transform .18s ease;
}
.img-reload:hover, .img-tool:hover { background: var(--accent); transform: scale(1.08); border-color: var(--accent); }
.img-reload svg, .img-tool svg { width: 16px; height: 16px; transition: transform .45s ease; }
.img-reload:hover svg { transform: rotate(180deg); }
.img-reload.spinning svg { animation: imgspin .8s linear infinite; }
@keyframes imgspin { to { transform: rotate(360deg); } }
.card.mini { position: relative; }
.card.mini .img-tools { top: 8px; left: 8px; right: auto; }
.card.mini .img-reload, .card.mini .img-tool { width: 28px; height: 28px; }

/* --- obrázková vyhľadávacia stránka --- */
.img-result { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.img-result:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.1); border-color: var(--accent); }
.img-result img { width: 100%; display: block; object-fit: cover; background: var(--accent-soft); }
.img-result .meta { padding: 10px 12px 12px; }
.img-result .license { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }
.img-result .credit { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.img-result.selected { outline: 3px solid var(--accent); outline-offset: -3px; }

.card-body { padding: 20px 22px 18px; }

.kicker {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap;
}
/* kategória ako badge */
.card .kicker a, .card.cover .kicker, .bento .kicker a {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  line-height: 1.5; transition: background .2s, color .2s;
}
.card .kicker a:hover, .bento .kicker a:hover { background: var(--accent); color: #fff; }
.card.cover .kicker {
  background: rgba(255,255,255,.16); color: #fff;
  backdrop-filter: blur(6px); align-self: flex-start;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.28; letter-spacing: -.02em;
  font-weight: 700; margin: 0 0 8px;
}
.card h3 a:hover { color: var(--accent); }

.card .excerpt { color: var(--ink-2); font-size: 13.5px; margin: 0; }

.card-meta {
  display: flex; align-items: center; gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px; padding-top: 13px;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.card-meta .left { display: flex; gap: 14px; }
.meta-stat { display: inline-flex; align-items: center; gap: 5px; }
.meta-ico { width: 15px; height: 15px; opacity: .75; }

.byline { font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.byline b { color: var(--ink); font-weight: 600; }

/* dark cover card */
.card.cover { position: relative; color: #fff; border: none; }
.card.cover .thumb img { aspect-ratio: var(--ar, 4/4.6); filter: brightness(.62) saturate(1.05); }
.card.cover .cover-body {
  position: absolute; inset: 0;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.card.cover .avatar-chip {
  position: absolute; top: 20px; left: 22px;
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, #ff8a4d, #ff5a8c);
  color: #fff;
}

.card.cover h3 { color: #fff; font-size: 20px; }
.card.cover .cover-date { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.card.cover .card-meta { border-top-color: rgba(255,255,255,.25); color: rgba(255,255,255,.8); }

/* text-only card */
.card.text-only .card-body { padding-top: 22px; }
.card .avatar-chip-inline {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  background: var(--accent); color: #fff;
  margin-bottom: 14px;
}

/* widgets in the grid */
.widget { padding: 24px; }

.widget h4 {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: -.02em; line-height: 1.2;
  margin: 0 0 10px;
}
.widget h4 .grad { color: var(--accent); }
.widget p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 16px; }

.widget input[type="text"], .widget input[type="email"] {
  width: 100%; padding: 11px 14px; margin-bottom: 10px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 13.5px;
}
.widget input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.widget .btn { width: 100%; }
.widget .fineprint { font-size: 11px; color: var(--ink-3); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }

.social-widget .label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.social-row { display: flex; justify-content: space-between; text-align: center; }
.social-row a { display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.social-row a:hover { color: var(--accent); }
.social-row svg { width: 18px; height: 18px; }

/* mini cards (sidebar-ish small posts) */
.card.mini { display: flex; gap: 14px; padding: 14px; align-items: center; }
.card.mini img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.card.mini h3 { font-size: 14.5px; margin: 0 0 6px; }
.card.mini .card-meta { border: none; margin: 0; padding: 0; }

/* feed note (twitter-like) */
.feed-card .feed-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.feed-card .feed-top svg { width: 18px; height: 18px; color: var(--accent); }
.feed-card blockquote {
  margin: 0; font-family: var(--font-display);
  font-size: 16.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em;
}
.feed-card .feed-meta { margin-top: 14px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; }

/* citátový slider (3 snímky, bodky) */
.feed-dots { display: flex; gap: 5px; }
.feed-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  cursor: pointer; transition: background .2s, transform .2s;
}
.feed-dot.active { background: var(--accent); transform: scale(1.25); }
.quote-slider { position: relative; min-height: 128px; }
.quote-slider .quote-slide {
  position: absolute; inset: 0; margin: 0; font-family: var(--font-display);
  font-size: 16.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em;
  opacity: 0; visibility: hidden; transition: opacity .5s ease;
}
.quote-slider .quote-slide.active { opacity: 1; visibility: visible; }

/* load more */
.load-more-wrap { display: flex; justify-content: center; padding: 10px 0 70px; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 56px 0 28px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

.footer-grid .about p { color: var(--ink-2); font-size: 13.5px; max-width: 320px; }

.footer-grid h5 {
  font-family: var(--font-display);
  font-size: 15px; margin: 0 0 14px; letter-spacing: -.01em;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid ul a { color: var(--ink-2); font-size: 13.5px; }
.footer-grid ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 44px; padding-top: 22px;
  font-size: 13px; color: var(--ink-3);
}
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------------- Article page ---------------- */

.article-hero {
  position: relative;
  min-height: 440px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: #fff;
  margin-top: -80px; /* pod hlavičku — presnú hodnotu nastaví article.js podľa nameranej výšky */
  padding-top: 120px;
}
.article-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55) saturate(1.1);
}
.article-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,25,.25), rgba(10,14,25,.55));
}
.article-hero .hero-inner { position: relative; padding: 60px 0 64px; width: 100%; }
.article-hero .cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12; letter-spacing: -.03em;
  margin: 0 0 16px; max-width: 720px;
}
.article-hero .a-byline { font-size: 13.5px; color: rgba(255,255,255,.85); }
.article-hero .a-byline b { font-weight: 700; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 36px 0 60px;
  align-items: start;
}

.article-main { min-width: 0; }

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 52px);
  position: relative;
}

.read-stats {
  display: flex; gap: 18px; margin-bottom: 26px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.read-stats span { display: inline-flex; align-items: center; gap: 7px; }
.read-stats svg { width: 14px; height: 14px; }

.share-rail {
  position: sticky; top: 110px; float: left;
  margin-left: calc(-1 * clamp(24px, 4vw, 52px) - 26px);
  display: flex; flex-direction: column; gap: 8px;
}
.share-rail .icon-btn { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.share-rail .count { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); }

.prose { font-size: 16px; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }

.prose h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 27px; letter-spacing: -.025em; line-height: 1.2;
  margin: 42px 0 14px;
}
.prose h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 20px; letter-spacing: -.02em;
  margin: 32px 0 10px;
}
.prose p { margin: 0 0 18px; }
.prose a { color: var(--accent); font-weight: 600; }
.prose img { border-radius: var(--radius-md); margin: 28px 0; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code {
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 7px; border-radius: 6px; font-size: 13.5px;
}
.prose pre {
  background: var(--dark-card); color: #dfe5f4;
  border-radius: var(--radius-md);
  padding: 20px 22px; overflow: auto;
  font-size: 13.5px; line-height: 1.55;
  margin: 24px 0;
}
.prose pre code { background: none; color: inherit; padding: 0; }

.prose blockquote {
  margin: 34px 0; padding: 0 0 0 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em;
  color: var(--ink);
}
.prose blockquote footer {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  margin-top: 12px; letter-spacing: 0;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 58px; line-height: .82; font-weight: 800;
  padding: 8px 14px; margin: 4px 14px 4px 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tag-row .pill { font-size: 12px; padding: 6px 13px; }

.share-block {
  margin-top: 36px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  text-align: center; background: var(--bg);
}
.share-block .label { font-weight: 700; font-family: var(--font-display); margin-bottom: 14px; }
.share-block .row { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.share-block input {
  width: 100%; max-width: 420px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px dashed var(--line); background: var(--surface);
  color: var(--ink-3); font-size: 12.5px; text-align: center;
}

.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 36px; padding-top: 32px;
}
.author-box .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.author-box .avatar.fallback {
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  color: #fff; background: linear-gradient(135deg, var(--accent), #ff5a8c);
}
.author-box h4 { font-family: var(--font-display); margin: 0 0 6px; font-size: 17px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 13.5px; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 28px;
}
.post-nav a {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: var(--shadow-card); transition: .18s;
}
.post-nav a:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-nav .dir { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.post-nav .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.post-nav a.next { text-align: right; }

/* comments */
.comments-card { margin-top: 28px; }
.comments-card h4, .reply-card h4 { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; margin: 0 0 20px; }
.comment { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: none; padding-top: 0; }
.comment .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #7c5cff, #ff5a8c);
}
.comment .who { font-weight: 700; font-size: 13.5px; }
.comment .when { font-size: 12px; color: var(--ink-3); margin-left: 8px; }
.comment p { margin: 6px 0 8px; color: var(--ink-2); font-size: 13.5px; }
.comment .reply-link { font-size: 12px; font-weight: 700; color: var(--accent); background: none; border: none; cursor: pointer; padding: 0; }

.reply-card form { display: grid; gap: 12px; }
.reply-card textarea, .reply-card input {
  width: 100%; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px;
  resize: vertical;
}
.reply-card .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.reply-card .btn { justify-self: end; }

/* ---------------- Sidebar ---------------- */

.sidebar { display: grid; gap: 22px; position: sticky; top: 96px; }

.side-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 22px;
}
.side-card .label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 16px;
}
/* nadpis boxu v štýle widgetov na domovskej stránke */
.side-card .side-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 19px; letter-spacing: -.02em; line-height: 1.25;
  margin: 0 0 16px;
}
.side-card .side-title .grad,
.folder-tab .side-title .grad { color: var(--accent); }

/* ---------------- Folder boxy v bočnom paneli ----------------
   Box v tvare zaobleného foldera: uško vľavo hore nesie názov,
   pravý okraj uška sa oblo zvažuje k telu. Tieň a jemná obrysová
   linka kopírujú celú siluetu (drop-shadow na obale), takže tvar
   pôsobí ako jeden kus vo svetlom aj tmavom režime. */
.folder-card { position: relative;
  filter: drop-shadow(0 0 .6px var(--line)) drop-shadow(0 1px 2px rgba(14, 19, 32, .05)) drop-shadow(0 12px 28px rgba(14, 19, 32, .09)); }
html[data-theme="dark"] .folder-card {
  filter: drop-shadow(0 0 .6px var(--line)) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)) drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }

.folder-tab { position: relative; display: inline-flex; align-items: center;
  height: 40px; padding: 0 6px 0 20px; max-width: 72%;
  background: var(--surface); border-radius: 14px 4px 0 0; }
.folder-tab::after { content: ""; position: absolute; top: 0; right: -21px; width: 34px; height: 100%;
  background: var(--surface); transform: skewX(24deg); border-radius: 6px 12px 0 0; }
.folder-tab .side-title { margin: 0; font-size: 17px; position: relative; z-index: 1; white-space: nowrap; }

.folder-body { background: var(--surface); border-radius: 0 16px 16px 16px; padding: 20px; }

/* ---------------- „Výber pre vás" (podľa trendov) ---------------- */
.reco-list { display: flex; flex-direction: column; gap: 12px; }

.reco-hero { position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; aspect-ratio: 16/9; }
.reco-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.reco-hero:hover img { transform: scale(1.05); }
.reco-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 20, 0) 30%, rgba(10, 12, 20, .78) 100%); }
.reco-hero .rh-body { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; }
.reco-hero .rh-cat { display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; }
.reco-hero .rh-title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; line-height: 1.3; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.reco-item { display: grid; grid-template-columns: 58px 1fr; gap: 11px; align-items: center; text-decoration: none;
  padding: 4px; margin: -4px; border-radius: 12px; transition: background .18s ease; }
.reco-item:hover { background: var(--accent-soft); }
.reco-item .ri-thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; display: block; background: var(--accent-soft); }
.reco-item .ri-cat { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.reco-item .ri-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-flame { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-left: 5px;
  background: linear-gradient(135deg, var(--accent), #ff5a8c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4-3 5-3 9a3 3 0 0 0 6 0c0-1.5-1-2.5-1-4 3 1 5 4 5 7a7 7 0 0 1-14 0c0-5 5-7 7-12z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4-3 5-3 9a3 3 0 0 0 6 0c0-1.5-1-2.5-1-4 3 1 5 4 5 7a7 7 0 0 1-14 0c0-5 5-7 7-12z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------------- „TOP články" s tabmi Dnes / 7 dní / Celkovo ---------------- */
.tw-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 11px; padding: 4px; margin-bottom: 10px; }
.tw-tab { border: 0; background: transparent; color: var(--ink-2); font: 600 12px/1 var(--font-display);
  padding: 8px 4px; border-radius: 8px; cursor: pointer; transition: all .18s ease; }
.tw-tab.active { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(14, 19, 32, .10); }
.tw-tab:hover:not(.active) { color: var(--ink); }

.tw-list { display: flex; flex-direction: column; }
.tw-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center;
  padding: 9px 4px; margin: 0 -4px; border-radius: 10px; text-decoration: none; transition: background .18s ease; }
.tw-row:hover { background: var(--accent-soft); }
.tw-row + .tw-row { border-top: 1px solid var(--line); }
.tw-num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font: 800 13px/1 var(--font-display); color: var(--ink-3); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tw-row:nth-child(1) .tw-num { background: linear-gradient(135deg, var(--accent), #ff5a8c); color: #fff; box-shadow: 0 4px 12px -4px rgba(255, 90, 140, .5); }
.tw-row:nth-child(2) .tw-num { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tw-row:nth-child(3) .tw-num { background: color-mix(in srgb, #ff5a8c 13%, transparent); color: #ff5a8c; }
.tw-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-card p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 16px; }

.featured-list { display: grid; gap: 0; }
.featured-item { padding: 13px 0; border-top: 1px solid var(--line); }
.featured-item:first-child { border-top: none; padding-top: 0; }
.featured-item:last-child { padding-bottom: 0; }
.featured-item .t {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; line-height: 1.4; letter-spacing: -.01em;
  transition: color .15s;
}
.featured-item .t:hover { color: var(--accent); }
.featured-item .meta { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }

.top-week { display: grid; gap: 6px; }
.top-week .row {
  display: flex; gap: 13px; align-items: center;
  padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius-md);
  transition: background .15s;
}
.top-week .row:hover { background: var(--accent-soft); }
.top-week .num {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  transition: background .15s, color .15s;
}
.top-week .row:hover .num { background: var(--accent); color: #fff; }
.top-week .t { font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.top-week .row:hover .t { color: var(--accent); }

.cat-stack { display: grid; gap: 10px; }
.cat-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; color: #fff;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); transition: transform .4s; }
.cat-tile .cat-tile-bg { position: absolute; inset: 0; filter: brightness(.75); transition: transform .4s; }
.cat-tile:hover img, .cat-tile:hover .cat-tile-bg { transform: scale(1.06); }
.cat-tile .name, .cat-tile .count, .cat-tile .arrow { position: relative; font-family: var(--font-display); font-weight: 700; }
.cat-tile .arrow {
  font-size: 20px; line-height: 1; opacity: .75;
  transition: transform .2s, opacity .2s;
}
.cat-tile:hover .arrow { transform: translateX(4px); opacity: 1; }
.cat-tile .count {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,.2); backdrop-filter: blur(6px); font-size: 12.5px;
}

.social-list { display: grid; gap: 6px; }
.social-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: .15s;
}
.social-list a:hover { background: var(--accent-soft); color: var(--accent); }
.social-list .sub { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.social-list svg { width: 16px; height: 16px; }

.promo-card {
  background: var(--dark-card); color: #fff; border: none;
}
.promo-card h4 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 12px; }
.promo-card p { color: rgba(255,255,255,.7); font-size: 13.5px; margin: 0 0 18px; }

/* read next */
.read-next { padding: 20px 0 70px; }
.read-next h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: -.025em; margin: 0 0 22px; }
.read-next-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }

/* Karty v "Čítajte ďalej" majú rovnakú výšku:
   jednotná výška obrázka + titulok aj perex skrátené na pevný počet riadkov,
   metariadok (zobrazenia/lajky) zarovnaný na spodok karty. */
.read-next-grid > div { display: flex; }
.read-next-grid .card { display: flex; flex-direction: column; width: 100%; }
.read-next-grid .card .thumb { flex: 0 0 auto; }
.read-next-grid .card .thumb img {
  aspect-ratio: auto; height: 165px; width: 100%; object-fit: cover;
}
.read-next-grid .card .card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.read-next-grid .card h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(2 * 1.35em);
}
.read-next-grid .card .excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-next-grid .card .card-meta { margin-top: auto; padding-top: 14px; }

/* ---------------- Admin ---------------- */

.admin-hero { padding: 56px 0 30px; }
.admin-hero h1 { font-family: var(--font-display); font-size: 38px; letter-spacing: -.03em; margin: 0 0 8px; }
.admin-hero p { color: var(--ink-2); max-width: 640px; }

.admin-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 70px; }

.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-3);
  background: var(--surface);
  cursor: pointer;
  transition: .18s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 34px; height: 34px; margin-bottom: 10px; }
.dropzone b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; }

.import-log {
  margin-top: 16px; font-size: 12.5px;
  display: grid; gap: 6px;
}
.import-log .ok { color: #16a34a; }
.import-log .warn { color: #d97706; }
.import-log .err { color: #dc2626; }

.table-card { padding: 0; overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-card th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.table-card td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-card tr:last-child td { border-bottom: none; }
.table-card td .t { font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
.table-card td .slug { font-size: 12px; color: var(--ink-3); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mini-btn {
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.mini-btn.danger:hover { border-color: #dc2626; color: #dc2626; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-3); }
.empty-state b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--surface);
  padding: 12px 20px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Vstupná animácia bento mozaiky: veľmi krátky slide + fade podľa
   pozície dlaždice — ľavá prichádza zľava, pravá sprava, stredná
   horná zhora a stredná dolná zdola. Jemné odstupňovanie (60 ms)
   dodá pohybu prirodzenosť; celé to trvá pod pol sekundy. */
.bento-item.reveal { transition: opacity .35s ease-out, transform .35s ease-out; }
.bento-item.bento-1.reveal { transform: translateX(-28px); }
.bento-item.bento-2.reveal { transform: translateY(-28px); transition-delay: .06s; }
.bento-item.bento-3.reveal { transform: translateY(28px);  transition-delay: .12s; }
.bento-item.bento-4.reveal { transform: translateX(28px);  transition-delay: .18s; }
.bento-item.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card .thumb img { transition: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .read-next-grid { grid-template-columns: repeat(2, 1fr); }
  .share-rail { display: none; }
  .main-nav { display: none; }
  .nav-tagline { display: none; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .post-nav { grid-template-columns: 1fr; }
  .reply-card .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .read-next-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-hero { border-radius: 0 0 20px 20px; }
}

/* ============================================================
   ADMIN / GUEST viditeľnosť (prepína app.js cez body.is-admin)
   ============================================================ */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
body.is-admin li .admin-only,
body.is-admin .footer-grid .admin-only { display: inline !important; }
.guest-only { display: inline-flex; }
body.is-admin .guest-only { display: none !important; }

/* ============================================================
   PREPÍNAČ TÉMY (slnko / mesiac)
   ============================================================ */
.icon-btn .icon-sun { display: none; }
.icon-btn .icon-moon { display: block; }
html[data-theme="dark"] .icon-btn .icon-sun { display: block; }
html[data-theme="dark"] .icon-btn .icon-moon { display: none; }

/* ============================================================
   MEGA-MENU
   ============================================================ */
.has-mega { position: relative; }
.mega-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.mega-trigger .chev { width: 15px; height: 15px; transition: transform .2s ease; }
.has-mega:hover .mega-trigger .chev { transform: rotate(180deg); }

/* Megamenu sa vysúva SPOD hlavnej lišty a je presne také široké ako ona:
   polohuje sa voči celej .nav-card (left/right: 0), nie voči triggeru,
   takže sa nikdy neusekne mimo obrazovky. Vysúvanie: clip-path odhaľuje
   panel zhora nadol + jemný posun, s plynulým ease-out prechodom. */
.nav-card { position: relative; }
.has-mega { position: static; }
.mega-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  min-width: 0; max-width: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 20px 22px;
  opacity: 0; visibility: hidden;
  transform: translateY(-14px);
  clip-path: inset(0 0 100% 0 round var(--radius-lg));
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    clip-path .45s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease,
    visibility 0s .3s;
  z-index: 60;
}
.has-mega:hover .mega-panel {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  clip-path: inset(-40px -40px -80px -40px round var(--radius-lg));
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    clip-path .45s cubic-bezier(.22, 1, .36, 1),
    opacity .22s ease,
    visibility 0s;
}
/* neviditeľný mostík, aby myš neprepadla medzi lištou a panelom */
.mega-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

.mega-panel[id="megaCategories"] { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 20px; }
.mega-cats { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 16px; }
.mega-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; transition: background .15s ease, color .15s ease;
}
.mega-cat .arr { opacity: 0; transition: opacity .15s ease; }
.mega-cat:hover, .mega-cat.active { background: var(--accent-soft); color: var(--accent); }
.mega-cat.active .arr { opacity: 1; }

.mega-col { display: flex; flex-direction: column; gap: 6px; align-content: start; min-width: 0; }
.mega-col-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: 2px 8px 8px; border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.mega-col-head svg {
  width: 14px; height: 14px; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.mega-panel[id="megaArticles"] { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mega-articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }

.mega-item { display: flex; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; transition: background .15s ease; }
.mega-item:hover { background: var(--accent-soft); }
.mega-thumb { flex: 0 0 84px; height: 60px; border-radius: 9px; overflow: hidden; background: var(--accent-soft); display: block; }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mega-cat-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.mega-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); }
.mega-empty, .search-empty { color: var(--ink-3); font-size: 13px; padding: 14px; }

/* ============================================================
   VYHĽADÁVANIE V HLAVIČKE
   ============================================================ */
/* ============================================================
   VYSÚVACIE PANELY LIŠTY (search + mobilné menu)
   Rovnaký jazyk ako megamenu: presná šírka lišty, clip-path
   odhaľovanie zhora s pružným ease — lišta nemení veľkosť.
   Otvárajú sa triedou .open (nie hoverom).
   ============================================================ */
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 18px 20px;
  opacity: 0; visibility: hidden;
  transform: translateY(-14px);
  clip-path: inset(0 0 100% 0 round var(--radius-lg));
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    clip-path .45s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease,
    visibility 0s .3s;
  z-index: 70;
}
.drop-panel.open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  clip-path: inset(-40px -40px -80px -40px round var(--radius-lg));
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    clip-path .45s cubic-bezier(.22, 1, .36, 1),
    opacity .22s ease,
    visibility 0s;
}

/* --- vyhľadávací panel --- */
.sp-input {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}
.sp-input svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.sp-input input {
  flex: 1; min-width: 0; border: none; background: transparent;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--ink);
  outline: none;
}
.sp-input input::placeholder { color: var(--ink-3); }
.sp-esc {
  flex: none; font: 700 10.5px/1 var(--font-body, inherit);
  letter-spacing: .06em; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px;
}
.search-results-panel { display: grid; grid-template-columns: 1fr; gap: 4px; padding-top: 10px; }
.search-results-panel:empty { display: none; }
@media (min-width: 720px) { .search-results-panel { grid-template-columns: 1fr 1fr; gap: 4px 14px; } }
.search-hit { display: flex; gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; transition: background .15s ease; }
.search-hit:hover { background: var(--accent-soft); }
.search-hit-thumb { flex: 0 0 52px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--accent-soft); }
.search-hit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-hit-cat { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.search-hit-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* ============================================================
   PRIHLASOVACÍ DIALÓG
   ============================================================ */
.login-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 10, 18, .55); backdrop-filter: blur(4px);
}
.login-overlay.open { display: flex; }
.login-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 28px; width: 380px; max-width: 92vw;
}
.login-box h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; }
.login-box p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.login-box input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.login-msg { color: #dc2626; font-size: 13px; min-height: 18px; margin-top: 8px; }
.login-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* ============================================================
   RESPONZÍVNE — mega-menu na mobile
   ============================================================ */
@media (max-width: 900px) {
  .mega-panel { position: fixed; left: 8px; right: 8px; transform: none; min-width: 0; max-width: none; }
  .has-mega:hover .mega-panel { transform: none; }
  .mega-panel[id="megaCategories"] { grid-template-columns: 1fr; }
  .mega-cats { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 8px; }
  .mega-articles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN — nový layout (import row + tabuľka na celú šírku)
   ============================================================ */
.import-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: stretch;
  padding-bottom: 6px;
}
.import-col { display: flex; flex-direction: column; }
.import-col .dropzone { height: 100%; margin: 0; }

/* náhľad obrázka v tabuľke */
.thumb-cell {
  width: 68px; height: 48px; border-radius: 8px; overflow: hidden;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.thumb-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-empty { font-size: 9px; line-height: 1.2; color: var(--ink-3); text-align: center; text-transform: uppercase; letter-spacing: .04em; }

.articles-table .t a { color: var(--ink); text-decoration: none; font-weight: 600; }
.articles-table .t a:hover { color: var(--accent); }

.mini-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.mini-btn.primary:hover { filter: brightness(1.08); }

/* AI prompt modal v admine */
.prompt-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 10, 18, .55); backdrop-filter: blur(4px);
}
.prompt-modal.open { display: flex; }
.prompt-modal-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 24px; width: 560px; max-width: 92vw;
}

@media (max-width: 860px) {
  .import-row { grid-template-columns: 1fr; }
  .articles-table th:nth-child(3), .articles-table td:nth-child(3),
  .articles-table th:nth-child(4), .articles-table td:nth-child(4) { display: none; }
}

/* ============================================================
   Hromadné akcie s obrázkami (admin)
   ============================================================ */
.row-check, #checkAll { width: 16px; height: 16px; cursor: pointer; }
.import-log .log-ok { color: #16a34a; }
.import-log .log-skip { color: var(--ink-3); }
.import-log .log-err { color: #dc2626; }
#btnRegenSelected:disabled, #btnFillMissing:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   Bento mozaika najčítanejších článkov (domovská stránka)
   ============================================================ */
.featured-wrap { margin: 8px 0 30px; text-align: left; }
.featured-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.featured-kicker {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.featured-kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.bento-item {
  position: relative; overflow: hidden; border-radius: var(--radius-lg, 16px);
  display: block; text-decoration: none; isolation: isolate;
  background: var(--surface); box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.06));
}
.bento-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bento-noimg { inset: 0; }
.bento-item:hover .bento-img { transform: scale(1.06); }
.bento-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,9,18,.78) 0%, rgba(6,9,18,.32) 34%, rgba(6,9,18,0) 62%);
  z-index: 1;
}
.bento-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 15px 17px; }
.bento-cat {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
.bento-title {
  margin: 0; color: #fff; font-family: var(--font-display);
  font-weight: 600; line-height: 1.28; letter-spacing: .002em;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
  font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* rozloženie: 1=hero (2×3), 2=1×1, 3=1×2, 4=1×3 — presné umiestnenie do mriežky */
.bento-1 { grid-column: 1 / 3; grid-row: 1 / 4; }
.bento-1 .bento-title { font-size: 23px; font-weight: 600; -webkit-line-clamp: 3; }
.bento-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.bento-2 .bento-title { font-size: 14px; -webkit-line-clamp: 2; }
.bento-3 { grid-column: 3 / 4; grid-row: 2 / 4; }
.bento-3 .bento-title { font-size: 16px; }
.bento-4 { grid-column: 4 / 5; grid-row: 1 / 4; }
.bento-4 .bento-title { font-size: 16px; }

/* tablet: 2 stĺpce — hero hore cez celú šírku, zvyšné 3 pod ním v rade */
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .bento-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento-1 .bento-title { font-size: 21px; }
  .bento-2 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .bento-3 { grid-column: 2 / 3; grid-row: 3 / 5; }
  .bento-4 { grid-column: 1 / 2; grid-row: 4 / 5; }
}

/* mobil: 1 stĺpec, všetko pod sebou v poradí dôležitosti */
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 190px; gap: 10px; }
  .bento-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
  .bento-1 .bento-title { font-size: 18px; }
  .bento-2, .bento-3, .bento-4 { grid-column: 1 / 2; grid-row: auto; }
  .bento-title { font-size: 15px; }
}

/* ============================================================
   Lajky, hodnotenie a komentáre (engage.js)
   ============================================================ */

/* --- like tlačidlo na kartách (vpravo dole) --- */
.card-meta { display: flex; align-items: center; gap: 16px; }
.card-like {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  color: var(--ink-3); font: inherit; font-size: 13px; border-radius: 8px;
  transition: color .15s, background .15s, transform .15s;
}
.card-like:hover { color: #e0245e; background: rgba(224,36,94,.08); }
.card-like .like-heart {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linejoin: round; stroke-linecap: round;
  transition: transform .2s, fill .2s, stroke .2s;
}
.card-like:hover .like-heart { stroke: #e0245e; }
.card-like.liked .like-heart { fill: #e0245e; stroke: #e0245e; }
.card-like.liked { color: #e0245e; font-weight: 700; }
.card-like.pop .like-heart { animation: heartPop .32s ease; }
@keyframes heartPop { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* --- engagement priamo za článkom (vyzerá ako jeho súčasť) --- */
.engage-root { margin: 28px 0 0; }
.engage-root.article-card { padding: clamp(22px, 3vw, 36px); }
.engage-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px;
  padding: 0 0 24px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.like-big {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font: inherit; font-weight: 600; color: var(--ink-2);
  transition: all .18s;
}
.like-big .like-heart {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linejoin: round; stroke-linecap: round;
  transition: transform .2s, fill .2s, stroke .2s;
}
.like-big:hover { border-color: #e0245e; color: #e0245e; }
.like-big.liked .like-heart { fill: #e0245e; }
.like-big.liked { border-color: #e0245e; color: #e0245e; background: rgba(224,36,94,.07); }
.like-big.pop .like-heart { animation: heartPop .34s ease; }
.like-big .like-word { font-size: 14px; }

.rating-box { display: flex; flex-direction: column; gap: 10px; }
.rating-label { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.faces { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.face {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  padding: 12px 14px 10px; min-width: 84px;
  border-radius: 14px; line-height: 1; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.face .face-emoji { font-size: 44px; display: block; }
.face .face-label {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3);
}
.face:hover {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--accent); box-shadow: var(--shadow-card);
}
.face.chosen {
  background: var(--accent-weak, rgba(47,107,255,.12)); border-color: var(--accent);
}
.face.chosen .face-label { color: var(--accent); }
.face.bounce { animation: faceBounce .5s ease; }
@keyframes faceBounce { 0%{transform:scale(1)} 30%{transform:scale(1.5) rotate(-8deg)} 55%{transform:scale(1.2) rotate(6deg)} 100%{transform:scale(1)} }
.rating-avg { font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) {
  .face { min-width: 0; flex: 1 1 calc(20% - 8px); padding: 10px 6px 8px; }
  .face .face-emoji { font-size: 34px; }
  .face .face-label { font-size: 9.5px; }
}

/* --- komentáre --- */
.comments { padding-top: 0; }
.comments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.comments-head h3 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.c-count { color: var(--ink-3); font-weight: 500; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.c-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.comment { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.c-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6d28d9); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  font-family: var(--font-display);
}
.c-main { flex: 1; min-width: 0; }
.c-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.c-nick { font-size: 14.5px; color: var(--ink); }
.c-when { font-size: 12px; color: var(--ink-3); }
.c-text { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; word-wrap: break-word; }
.comment.seeded { opacity: .92; }
.c-del {
  flex: none; background: none; border: none; color: var(--ink-3); cursor: pointer;
  font-size: 15px; padding: 4px 8px; border-radius: 6px; transition: all .15s;
}
.c-del:hover { color: #dc2626; background: rgba(220,38,38,.08); }
.c-empty { color: var(--ink-3); font-size: 14.5px; padding: 8px 0 18px; }

.c-form { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.c-form input, .c-form textarea {
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px;
}
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--accent); }
.c-form textarea { resize: vertical; min-height: 78px; }
.c-form button { align-self: flex-start; }
.c-disabled {
  padding: 16px 18px; border-radius: 12px; background: var(--surface-2, rgba(0,0,0,.03));
  color: var(--ink-3); font-size: 14px; text-align: center; border: 1px dashed var(--line);
}

@media (max-width: 640px) {
  .engage-bar { gap: 18px; padding: 16px; }
  .rating-box { width: 100%; }
}

/* ===== Widget „Dnešný deň“ — meniny + významný deň (dáta z data/daily.json) ===== */
.daily-card .daily-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.daily-card .daily-head h4 { margin: 0; }
.daily-card .daily-date { white-space: nowrap; }
.daily-card .daily-block {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
}
.daily-card .daily-block + .daily-block { border-top: 1px solid var(--line); }
.daily-card .daily-ico {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.daily-card .daily-ico svg { width: 20px; height: 20px; }
.daily-card .daily-body strong {
  display: block; font-family: var(--font-display);
  font-size: 14.5px; line-height: 1.35; margin-bottom: 4px;
}
.daily-card .daily-body p {
  margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}

/* Autor citátu vo feed slideri */
.quote-slide .quote-author {
  display: block; margin-top: 8px;
  font-size: 12px; font-weight: 700; font-style: normal; color: var(--ink-3);
}

/* engage bez sekcie komentárov (docasne skryté) */
.engage-bar.no-comments { border-bottom: none; padding-bottom: 4px; margin-bottom: 0; }

/* ===== Statické podstránky (Ochrana súkromia a pod.) ===== */
.static-page { max-width: 780px; margin: 44px auto 70px; padding: clamp(26px, 4vw, 48px); }
.static-page h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; margin: 0 0 6px; }
.static-page .page-updated { font-size: 12.5px; color: var(--ink-3); margin: 0 0 26px; }
.static-page h2 { font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; margin: 32px 0 10px; }
.static-page h3 { font-family: var(--font-display); font-size: 16px; margin: 22px 0 8px; }
.static-page p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; margin: 0 0 14px; }

/* ============================================================
   Admin — prehľad, filter, akčné lišty, ikonové tlačidlá
   ============================================================ */

/* --- prehľadové karty (celkový počet + kategórie) --- */
.admin-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 18px;
}
.stat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 18px; min-width: 108px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-align: left;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.stat-card.active { border-color: var(--accent); background: var(--accent-soft); }
.stat-card .stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: -.02em; line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.stat-card.total .stat-num { color: var(--accent); }
.stat-card.warn .stat-num { color: #d97706; }
.stat-card.warn.active { border-color: #d97706; background: color-mix(in srgb, #d97706 10%, var(--surface)); }

/* --- akčné lišty (databáza / obrázky) --- */
.admin-actions { margin-bottom: 10px; }
.admin-actions-group {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.admin-actions-group .spacer { flex: 1; }
.admin-status { font-size: 12.5px; color: var(--ink-2); }

/* --- univerzálne ikonové tlačidlo (ikona + text, nízky profil) --- */
.abtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.abtn svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.abtn:hover { border-color: var(--accent); color: var(--accent); }
.abtn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.abtn.primary:hover { filter: brightness(1.08); }
.abtn.danger { color: #dc2626; border-color: color-mix(in srgb, #dc2626 30%, var(--line)); }
.abtn.danger:hover { background: color-mix(in srgb, #dc2626 8%, transparent); border-color: #dc2626; }
.abtn:disabled { opacity: .45; cursor: not-allowed; }
.abtn:disabled:hover { border-color: var(--line); color: var(--ink-2); }
.abtn.danger:disabled:hover { color: #dc2626; border-color: color-mix(in srgb, #dc2626 30%, var(--line)); background: transparent; }
.abtn-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font-size: 11px;
  background: var(--accent-soft); color: var(--accent);
}
.abtn.danger .abtn-count { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }

/* --- filter nad tabuľkou --- */
.admin-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px; margin: 16px 0 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0; border-bottom: none;
  box-shadow: var(--shadow-card);
  position: relative; z-index: 1;
}
.admin-filter .spacer { flex: 1; }
.admin-filter-meta {
  font-size: 12.5px; color: var(--ink-3);
  padding: 8px 16px;
  background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.admin-filter-meta b { color: var(--ink); }
.admin-filter ~ .table-card { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }

/* vyhľadávanie */
.af-search {
  position: relative; display: flex; align-items: center;
  flex: 1 1 240px; max-width: 340px; min-width: 190px;
}
.af-search > svg {
  position: absolute; left: 12px; width: 15px; height: 15px;
  fill: none; stroke: var(--ink-3); stroke-width: 1.9; stroke-linecap: round;
  pointer-events: none;
}
.af-search input {
  width: 100%; padding: 8px 34px 8px 36px;
  font: inherit; font-size: 13px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.af-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.af-search input::placeholder { color: var(--ink-3); }
.af-search input::-webkit-search-cancel-button { display: none; }
.af-search-clear {
  position: absolute; right: 6px; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: none; border-radius: 7px;
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.af-search-clear:hover { background: var(--accent-soft); color: var(--accent); }
.af-search-clear svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* select kategórie */
.af-select { position: relative; display: flex; align-items: center; }
.af-select > svg {
  position: absolute; left: 12px; width: 15px; height: 15px;
  fill: none; stroke: var(--ink-3); stroke-width: 1.9; stroke-linecap: round;
  pointer-events: none;
}
.af-select select {
  appearance: none; -webkit-appearance: none;
  padding: 8px 32px 8px 36px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a92a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.af-select select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* prepínač „bez obrázka" */
.af-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.af-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.af-toggle:hover { border-color: #d97706; color: #d97706; }
.af-toggle.active { background: color-mix(in srgb, #d97706 12%, var(--surface)); border-color: #d97706; color: #d97706; }

/* počet na stránku */
.af-pagesize { display: inline-flex; align-items: center; gap: 5px; }
.af-pagesize-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-right: 3px;
}
.af-chip {
  padding: 6px 12px;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.af-chip:hover { border-color: var(--accent); color: var(--accent); }
.af-chip.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* --- tlačidlá v riadkoch tabuľky (ikona + text, nízke) --- */
.ibtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; height: 28px;
  font: inherit; font-size: 12px; font-weight: 700;
  color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.ibtn svg {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ibtn:hover { border-color: var(--accent); color: var(--accent); }
.ibtn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ibtn.primary:hover { filter: brightness(1.08); }
.ibtn.danger { color: #dc2626; border-color: color-mix(in srgb, #dc2626 28%, var(--line)); }
.ibtn.danger:hover { background: color-mix(in srgb, #dc2626 9%, transparent); border-color: #dc2626; color: #dc2626; }
.ibtn.icon-only { width: 28px; padding: 0; justify-content: center; }

/* kategória — vždy jednoriadková */
.articles-table .badge {
  white-space: nowrap; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis;
  vertical-align: middle;
}
.articles-table .date-cell { white-space: nowrap; color: var(--ink-2); font-size: 12.5px; }

/* checkboxy v tabuľke — zladené s témou */
.articles-table input[type="checkbox"],
#checkAll {
  width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer;
}

/* --- stránkovanie pod tabuľkou --- */
.admin-pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 18px; border-top: 1px solid var(--line);
}
.admin-pagination-info { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* responzívne správanie filtra */
@media (max-width: 860px) {
  .admin-filter { align-items: stretch; }
  .af-search { max-width: none; flex: 1 1 100%; }
  .af-pagesize { flex-wrap: wrap; }
  .admin-stats .stat-card { flex: 1 1 calc(33% - 10px); min-width: 96px; }
}

/* ============================================================
   Admin — editovateľná kategória v tabuľke + plný editor článku
   ============================================================ */

/* badge kategórie ako tlačidlo s ceruzkou */
.badge-edit {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent; cursor: pointer; font: inherit;
  font-size: 11px; font-weight: 700;
  transition: border-color .15s, background .15s;
}
.badge-edit svg {
  width: 10px; height: 10px; flex: none; opacity: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .15s;
}
.badge-edit:hover { border-color: var(--accent); }
.badge-edit:hover svg { opacity: 1; }
.badge-edit .badge-text {
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* inline select po kliknutí na badge */
.cat-inline-select {
  font: inherit; font-size: 12px; font-weight: 700;
  padding: 5px 8px; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--surface); color: var(--ink);
  outline: none; max-width: 175px; cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- plný editor článku na stránke vyhľadávania obrázkov --- */
.article-editor { padding: 0; overflow: hidden; }
.ae-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 16px 20px; border: none; background: transparent;
  font: inherit; color: var(--ink); cursor: pointer; text-align: left;
}
.ae-head:hover { background: var(--accent-soft); }
.ae-head > svg {
  width: 16px; height: 16px; flex: none; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ae-head-title { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.ae-head-sub { font-size: 12px; color: var(--ink-3); flex: 1; }
.ae-chevron { transition: transform .2s; }
.ae-head.open .ae-chevron { transform: rotate(180deg); }

.ae-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }

.ae-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
  padding-top: 16px;
}
.ae-grid .span2 { grid-column: 1 / -1; }

.ae-subhead {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px;
}
.ae-metrics {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}

/* jednotné formulárové pole */
.ffield { display: flex; flex-direction: column; gap: 6px; }
.ffield label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3);
}
.ffield input, .ffield textarea, .ffield select {
  font: inherit; font-size: 13.5px; color: var(--ink);
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg);
  outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.ffield input:focus, .ffield textarea:focus, .ffield select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.ffield textarea { resize: vertical; line-height: 1.55; }
#aeContent { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; }
.ffield select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a92a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
  padding-right: 32px;
}

.ae-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.ae-footer .spacer { flex: 1; }
.ae-status { font-size: 12.5px; font-weight: 600; color: #16a34a; }

@media (max-width: 860px) {
  .ae-grid { grid-template-columns: 1fr; }
  .ae-metrics { grid-template-columns: repeat(3, 1fr); }
  .ae-head-sub { display: none; }
}

/* ============================================================
   Admin — panel duplicitných obrázkov
   ============================================================ */
#imgDupesPanel { margin: 16px 0 4px; display: grid; gap: 12px; }

.imgdupe-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.imgdupe-head > svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.imgdupe-head.ok > svg { color: #16a34a; }
.imgdupe-head.warn > svg { color: #d97706; }
.imgdupe-head > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.imgdupe-head b { font-family: var(--font-display); font-size: 14.5px; letter-spacing: -.01em; }
.imgdupe-head span { font-size: 12.5px; color: var(--ink-2); }
.imgdupe-head.warn { border-color: color-mix(in srgb, #d97706 35%, var(--line)); }

.imgdupe-group {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.imgdupe-group-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, #d97706 6%, var(--surface));
}
.imgdupe-group-head .spacer { flex: 1; }
.imgdupe-base {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 7px;
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.imgdupe-count {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #d97706;
}
.imgdupe-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.imgdupe-row:last-child { border-bottom: none; }
.imgdupe-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.imgdupe-info .t {
  font-weight: 700; font-family: var(--font-display); font-size: 13.5px;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.imgdupe-info .t:hover { color: var(--accent); }
.imgdupe-path {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.imgdupe-row .badge { flex: none; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .imgdupe-row { flex-wrap: wrap; }
  .imgdupe-row .badge { display: none; }
}

/* ============================================================
   Inverzné widgety — citáty, meniny, newsletter a počasie majú
   vždy opačnú tému než zvyšok stránky (light → tmavý box,
   dark → svetlý box). Rieši sa lokálnym prepísaním premenných,
   takže všetky vnútorné prvky (inputy, badge, ikony…) sa
   preladia automaticky.
   ============================================================ */
:root {
  --inv-bg: #0c0e16;
  --inv-surface: #141826;
  --inv-ink: #f2f4f8;
  --inv-ink-2: #aeb5c4;
  --inv-ink-3: #6d7484;
  --inv-line: #23283a;
  --inv-accent: #5b8bff;
  --inv-accent-soft: #1a2340;
  --inv-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] {
  --inv-bg: #f5f6f8;
  --inv-surface: #ffffff;
  --inv-ink: #0e1320;
  --inv-ink-2: #4b5361;
  --inv-ink-3: #8a92a1;
  --inv-line: #e8eaef;
  --inv-accent: #2f6bff;
  --inv-accent-soft: #eaf0ff;
  --inv-shadow: 0 1px 2px rgba(14, 19, 32, .05), 0 12px 32px -16px rgba(255, 255, 255, .08);
}

/* Widgety (počasie, dnešný deň, citáty, newsletter) už nie sú plne
   inverzné — zvýrazňujú sa jemným sivým podfarbením, ktoré ich odlíši
   od bielych kariet článkov bez tvrdého kontrastu. Trieda .inv ostáva:
   používa ju rozmiestňovacia logika (widgety nikdy vedľa seba). */
/* WIDGET DESIGN — variant A: biela karta s 3px gradientovou hornou
   linkou v brandových farbách. Trieda .inv ostáva aj kvôli
   rozmiestňovacej logike (widgety nikdy vedľa seba). */
.card.widget.inv {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card.widget.inv::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff5a8c);
}

/* ============================================================
   Widget Počasie — celé Slovensko + veľké mestá (Dnes / Zajtra)
   ============================================================ */
.weather-card .weather-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.weather-card .weather-head h4 { margin: 0; }

/* meno lokality hore vpravo, s jemným fade pri prepnutí */
.w-loc {
  font-family: var(--font-display); font-weight: 800;
  font-size: 13.5px; letter-spacing: -.01em; color: var(--ink);
  text-align: right; max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: opacity .14s ease, transform .14s ease;
}
.w-loc.switching { opacity: 0; transform: translateY(-3px); }

/* šípky na prepínanie lokalít */
.weather-nav { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.w-arrow {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-3); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.w-arrow:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.w-arrow:active { transform: scale(.94); }
.w-arrow svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.weather-slider { position: relative; min-height: 86px; margin-top: 10px; }
.weather-loading {
  display: grid; place-items: center; min-height: 86px;
  font-size: 12.5px; color: var(--ink-3);
}

.w-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(14px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  display: flex; flex-direction: column;
}
.w-slide.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }

.w-today {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px;
}
.w-today-label {
  position: absolute; top: 12px; right: 14px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.w-today-main { display: flex; flex-direction: column; gap: 2px; }
.w-day-ico { color: var(--accent); flex: none; }
.w-day-ico svg {
  width: 44px; height: 44px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.w-day-cond { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.w-day-temp { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.w-day-temp b { font-weight: 800; }
.w-day-temp i { font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink-3); }

/* ============================================================
   Navigácia kategórií — breadcrumb + badge podľa hĺbky
   ============================================================ */
.cat-crumbs {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 8px; flex-wrap: wrap;
}
.crumb {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; min-height: 38px; box-sizing: border-box;
  border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2;
  background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
  cursor: pointer; transition: opacity .15s;
}
/* domček (iba ikona) — rovnaká výška ako ostatné badge, väčší vnútorný padding */
.crumb:has(svg:only-child) { padding: 8px 15px; }
.crumb:hover { opacity: .85; }
.crumb.here { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); cursor: default; }
.crumb.here:hover { opacity: 1; }
.crumb svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.crumb-sep { color: var(--ink-3); font-weight: 700; }

.pill i {
  font-style: normal; font-size: 10.5px; font-weight: 800;
  opacity: .55; margin-left: 2px;
}
.pill-sub { border-style: dashed; }
.pill-filter.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill-divider {
  width: 1px; height: 22px; background: var(--line);
  display: inline-block; align-self: center; margin: 0 4px;
}

/* ============================================================
   Bento mozaika — prepínač Najčítanejšie / Najnovšie (iba ikony)
   ============================================================ */
.featured-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.bento-toggle {
  display: inline-flex; gap: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
  box-shadow: var(--shadow-card);
}
.bento-mode {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  border: none; background: transparent; color: var(--ink-3);
  cursor: pointer; transition: background .15s, color .15s;
}
.bento-mode:hover { color: var(--accent); background: var(--accent-soft); }
.bento-mode.active { background: var(--ink); color: var(--surface); }
.bento-mode svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   Prioritné články (typ = "clanok")
   ============================================================ */
.stat-card.prio .stat-num { color: #ca8a04; }
.stat-card.prio.active { border-color: #ca8a04; background: color-mix(in srgb, #ca8a04 10%, var(--surface)); }

.typ-flag {
  display: inline-block; margin-right: 5px;
  color: #ca8a04; font-size: 13px;
}

.ae-checkrow { padding-top: 2px; }
.ae-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.5;
}
.ae-check input[type="checkbox"] {
  width: 17px; height: 17px; margin-top: 2px; flex: none;
  accent-color: var(--accent); cursor: pointer;
}
.ae-check b { color: var(--ink); }


/* ============================================================
   MOBILNÉ BURGER MENU
   ============================================================ */
.nav-burger { display: none; }
.nav-burger .ico-x { display: none; }
.nav-burger.open .ico-burger { display: none; }
.nav-burger.open .ico-x { display: block; }

.mobile-menu { padding: 10px; }
.mm-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: none; background: none; border-radius: 12px;
  font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink);
  text-decoration: none; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.mm-link:hover { background: var(--accent-soft); color: var(--accent); }
.mm-acc svg {
  width: 18px; height: 18px; color: var(--ink-3);
  transition: transform .25s ease;
}
.mm-acc.open svg { transform: rotate(180deg); }
.mm-acc.open { color: var(--accent); background: var(--accent-soft); }

.mm-acc-body { overflow: hidden; max-height: 0; transition: max-height .32s cubic-bezier(.22,1,.36,1); }
.mm-acc-body.open { max-height: 480px; overflow-y: auto; }

.mm-sub {
  display: block; padding: 11px 14px 11px 28px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; border-radius: 10px;
  transition: background .15s, color .15s;
}
.mm-sub:hover { background: var(--accent-soft); color: var(--accent); }
.mm-art { font-weight: 600; line-height: 1.35; }
.mm-art-cat {
  display: block; font-size: 10px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 2px;
}
.mm-admin {
  display: flex !important; gap: 10px; padding: 12px 14px 6px;
  border-top: 1px solid var(--line); margin-top: 8px;
}
.mm-admin .btn { flex: 1; justify-content: center; }
body:not(.is-admin) .mm-admin { display: none !important; }

@media (max-width: 1100px) {
  .nav-burger { display: grid; }
}
@media (max-width: 700px) {
  /* Import/Odhlásiť sa na malých displejoch sťahujú do burger menu */
  .nav-right > .btn { display: none !important; }
}


/* ============================================================
   OBRÁZKY V TEXTE ČLÁNKU — veľké, centrované, zaoblené
   ============================================================ */
.article-content img,
.prose img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 32px auto;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}


/* ============================================================
   Plávajúce tlačidlo úpravy článku (len pre prihláseného admina)
   ============================================================ */
.edit-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: none; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--surface);
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, .5);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
body.is-admin .edit-fab { display: inline-flex; }
.edit-fab:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent), #ff5a8c);
  box-shadow: 0 10px 28px -8px rgba(47, 107, 255, .55);
}
.edit-fab svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .edit-fab { right: 14px; bottom: 14px; padding: 11px 14px; }
  .edit-fab span { display: none; }        /* na mobile len ikona */
}


/* ============================================================
   Navigačné badge: na úzkych obrazovkách jeden riadok s posuvom
   namiesto zalamovania do viacerých riadkov
   ============================================================ */
@media (max-width: 1130px) {
  .cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;              /* Firefox */
    padding-bottom: 2px;
    /* jemné naznačenie, že rad pokračuje za okrajom */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .cat-pills::-webkit-scrollbar { display: none; }
  .cat-pills > * { flex: 0 0 auto; }
  .cat-crumbs { flex: 0 0 auto; }
}
