/* Štýly stránky článku.
   Zdieľa ich clanok.html (dynamická verzia pre už rozposlané odkazy) aj
   netlify/functions/clanok.js (indexovateľná verzia pre vyhľadávače).
   Vytiahnuté zo <style> v clanok.html 2026-08-14, aby sa obe verzie
   nemohli vzhľadovo rozísť a CSS sa neopakovalo v každej stránke. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f5f0;
  --surface: #ffffff;
  --border: #e0ddd5;
  --accent: #c8a227;
  --text: #1a1a1a;
  --muted: #888;
  --header-bg: #1a1a1a;
}
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; }

header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--accent);
  padding: 0 clamp(16px, 4vw, 48px);
}
.header-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; height: 64px; gap: 16px;
}
.back-btn {
  color: #aaa; text-decoration: none; font-size: 0.85rem;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--accent); }
.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; color: #fff; text-decoration: none; }
.logo span { color: var(--accent); }
/* Oznámenie o AI (Článok 50 AI Act) — na stránke článku, kde AI text reálne
   je. Nesmie sa skrývať na mobile, preto sa len zmenšuje. */
.logo-tagline {
  font-size: 0.58rem; color: rgba(255,255,255,0.55); letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 400; white-space: nowrap;
}
@media (max-width: 600px) {
  .logo-tagline { font-size: 0.5rem; letter-spacing: 0.8px; }
}

.article-wrap {
  max-width: 780px; margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px);
}

.article-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; flex-wrap: wrap;
}

.cat-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  background: rgba(200,162,39,0.15); color: var(--accent);
  border: 1px solid rgba(200,162,39,0.3);
}

.article-source {
  font-size: 0.75rem; color: var(--muted);
}

.article-date {
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  background: #f5f0e0; padding: 2px 8px; border-radius: 10px; margin-left: auto;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900; line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
}

.article-perex {
  font-size: 1.1rem; font-weight: 500; line-height: 1.7;
  color: #444; border-left: 3px solid var(--accent);
  padding-left: 20px; margin-bottom: 32px;
}

/* AD SLOT */
.ad-slot {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 4px; padding: 16px; text-align: center;
  color: var(--muted); font-size: 0.75rem; margin-bottom: 32px;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
}

.article-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; margin: 0 0 22px; display: block; background: var(--surface); }
.article-figure { margin: 0 0 22px; }
.article-figure .article-img { margin: 0 0 6px; }
.img-credit { font-size: 0.7rem; color: var(--muted); font-style: italic; }
.article-content {
  font-size: 1rem; line-height: 1.8; color: #111;
}

.article-content p {
  margin-bottom: 20px;
}

.article-footer {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.source-link {
  font-size: 0.8rem; color: var(--muted);
}

.source-link a { color: var(--accent); }

.back-link {
  font-size: 0.85rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); padding: 8px 16px; border-radius: 4px;
  transition: all 0.2s;
}
.back-link:hover { background: var(--accent); color: #000; }

.loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 20px; gap: 16px; color: var(--muted);
}
.loader { width: 40px; height: 40px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer {
  border-top: 3px solid var(--accent); padding: 20px;
  text-align: center; color: var(--muted); font-size: 0.78rem;
  background: var(--surface); margin-top: 48px;
}
