/* ==========================================================================
   CFM JA — spoločné štýly pre blog a články
   Načítava ho blog.html aj každý článok v blog/. Tokeny sú zhodné s index.html,
   aby nové stránky vyzerali ako zvyšok webu.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f3ecdb;
  --cream-2: #faf4e6;
  --card: #ffffff;
  --ink: #14305f;
  --ink-2: #0f2444;
  --text: #2b3a4d;
  --text-muted: #6a7686;
  --blue: #3c93f0;
  --blue-hover: #2f82dd;
  --blue-soft: rgba(60,147,240,0.12);
  --yellow: #f0b429;
  --lavender: #e7eefb;
  --border: rgba(20,48,95,0.1);
  --radius: 22px;
  --radius-lg: 34px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  background: var(--cream-2);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.75rem; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ---------- HLAVIČKA PODSTRÁNKY ---------- */
.top { background: var(--ink); padding: 1.1rem 0; }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 0 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.top-logo img { height: 52px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 1.5rem; }
.top-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; white-space: nowrap; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: #fff; }
@media (max-width: 640px) {
  .top-logo img { height: 42px; }
  .top-nav { gap: 1rem; }
  .top-nav a { font-size: 0.82rem; }
  .top-nav a.hide-sm { display: none; }
}

/* ---------- SPOLOČNÉ DROBNOSTI ---------- */
.eyebrow { display: inline-block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.9rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(60,147,240,0.28); }
.chip.yellow { background: rgba(240,180,41,0.16); color: #8a6410; border-color: rgba(240,180,41,0.42); }
.meta { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- VÝPIS BLOGU ---------- */
.blog-hero { padding: 3.5rem 0 2rem; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.9rem; }
.blog-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; padding: 2rem 0 0; }
.filter-btn { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.82rem; padding: 0.55rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; padding: 2.5rem 0 4rem; }
.post-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(20,48,95,0.1); }
.post-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.post-card h2 { font-size: 1.22rem; line-height: 1.25; }
.post-card p { font-size: 0.94rem; color: var(--text-muted); flex-grow: 1; }
.post-card .score { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.03em; }
.post-card-foot { display: flex; align-items: center; gap: 0.5rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.85rem; color: var(--blue); padding-top: 0.35rem; }
.post-card-foot svg { width: 15px; height: 15px; }

.empty { text-align: center; padding: 3rem 0 4rem; color: var(--text-muted); }
.empty strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink); font-size: 1.1rem; margin-bottom: 0.4rem; }

/* oznam pod výpisom — zmazať, keď pribudnú prvé hodnotenia zápasov */
.soon { max-width: 760px; margin: 0 auto 4rem; text-align: center; background: #fff; border: 1px dashed rgba(20,48,95,0.22); border-radius: var(--radius); padding: 2rem 1.75rem; }
.soon svg { width: 26px; height: 26px; color: var(--blue); margin: 0 auto 0.85rem; }
.soon h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.soon p { color: var(--text-muted); font-size: 0.95rem; max-width: 520px; margin: 0 auto; }

/* ---------- ČLÁNOK ---------- */
.article-head { padding: 3.5rem 0 0; }
.article-head .inner { max-width: 760px; margin: 0 auto; }
.article-head .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.article-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 1rem; }
.article-head .lede { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.article-head .byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: 0.86rem; color: var(--text-muted); padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.article-head .byline strong { color: var(--ink); font-weight: 700; }

.prose { max-width: 760px; margin: 0 auto; padding: 2.25rem 0 1rem; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.13rem; margin: 1.8rem 0 0.6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.35rem; }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); font-weight: 700; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose figure { margin: 1.75rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: 0.84rem; color: var(--text-muted); text-align: center; margin-top: 0.6rem; }

/* zvýraznený box */
.callout { background: var(--lavender); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.35rem 1.6rem; margin: 1.75rem 0; }
.callout.warn { background: rgba(240,180,41,0.14); border-left-color: var(--yellow); }
.callout h3 { font-size: 1.02rem; margin: 0 0 0.5rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* checklist */
.checklist { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin: 1.75rem 0; }
.checklist h3 { font-size: 1.05rem; margin: 0 0 1rem; }
.checklist ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem 1.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-size: 0.95rem; }
.checklist li svg { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; margin-top: 0.24rem; }

/* dvojica áno/nie */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.75rem 0; }
.two-col .box { border-radius: var(--radius); padding: 1.4rem 1.5rem; border: 1px solid var(--border); background: #fff; }
.two-col .box h3 { font-size: 1rem; margin: 0 0 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.two-col .box ul { margin: 0 0 0 1.15rem; }
.two-col .box li { font-size: 0.93rem; margin-bottom: 0.45rem; }
.two-col .good { border-color: rgba(60,147,240,0.35); }
.two-col .good h3 { color: var(--blue); }
.two-col .bad { border-color: rgba(239,68,68,0.3); }
.two-col .bad h3 { color: #c23b3b; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* galéria fotiek z tréningu */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; margin: 1.75rem 0; }
.galeria a { display: block; border-radius: 14px; overflow: hidden; background: var(--lavender); aspect-ratio: 4 / 3; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.galeria a:hover img { transform: scale(1.04); }
/* prvá fotka cez celú šírku, keď je fotiek aspoň tri */
.galeria.hero-prva > a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.galeria-popis { font-size: 0.84rem; color: var(--text-muted); text-align: center; margin: -0.9rem 0 1.75rem; }
@media (max-width: 520px) { .galeria { grid-template-columns: 1fr 1fr; gap: 0.6rem; } }

/* časová os (pitný režim, priebeh dňa zápasu) */
.timeline { margin: 1.75rem 0; padding-left: 1.6rem; border-left: 2px solid var(--blue-soft); }
.timeline .step { position: relative; padding-bottom: 1.4rem; }
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step::before { content: ''; position: absolute; left: calc(-1.6rem - 6px); top: 0.4rem; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); border: 2.5px solid var(--cream-2); }
.timeline .when { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.15rem; }
.timeline .what { font-size: 0.95rem; color: var(--text); }
.timeline .what strong { color: var(--blue); }

/* varianty jedla vedľa seba */
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.75rem 0; }
.variant { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.variant .vlabel { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.4rem; }
.variant h3 { font-size: 1.05rem; margin: 0 0 0.85rem; }
.variant ul { margin: 0 0 0 1.15rem; }
.variant li { font-size: 0.94rem; margin-bottom: 0.45rem; }
.variant .opt { color: var(--text-muted); }
@media (max-width: 640px) { .variants { grid-template-columns: 1fr; } }

/* sledujte nás — pod každým článkom */
.follow { max-width: 760px; margin: 2.5rem auto 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.follow-text h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.follow-text p { font-size: 0.9rem; color: var(--text-muted); }
.follow-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.follow-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.15rem; border-radius: 999px; text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.88rem; color: #fff; transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap; }
.follow-btn svg { width: 17px; height: 17px; }
.follow-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,48,95,0.18); }
.follow-fb { background: #1877f2; }
.follow-ig { background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); }
@media (max-width: 620px) {
  .follow { flex-direction: column; align-items: stretch; text-align: center; }
  .follow-btns { justify-content: center; }
}

/* CTA na konci článku */
.article-cta { max-width: 760px; margin: 2.5rem auto 0; background: var(--ink); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; color: rgba(255,255,255,0.82); }
.article-cta h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.7rem; }
.article-cta p { margin-bottom: 1.5rem; }
.article-cta .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 0.95rem; font-family: 'Plus Jakarta Sans', sans-serif; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; line-height: 1; }
.btn svg { width: 15px; height: 15px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* späť na blog */
.back-row { max-width: 760px; margin: 2.5rem auto 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.88rem; color: var(--ink); text-decoration: none; }
.back-link:hover { color: var(--blue); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- PÄTIČKA ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,0.7); padding: 2.5rem 0; text-align: center; font-size: 0.88rem; margin-top: 4rem; }
.foot a { color: rgba(255,255,255,0.9); font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin-bottom: 0.4rem; }

@media (max-width: 700px) {
  .article-cta { padding: 2rem 1.5rem; }
  .checklist { padding: 1.35rem; }
}
