/* ============================================================
   HARCOVNÍK web — Tábor: živý rozcestník (lifecycle hub)
   Staví na styles.css + themes.css (theme-stopa). Z Claude Designu (tabor-hub.css).
   ============================================================ */

/* ============================================================
   HERO — „kde to právě je"
   ============================================================ */
.th-hero { position: relative; padding: clamp(30px, 5vw, 60px) 0 clamp(26px, 4vw, 44px); overflow: hidden; }
.th-hero__bg { position: absolute; inset: 0; z-index: 0; }
.th-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.th-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in oklab, var(--bg) 60%, transparent), var(--bg) 82%); }
.th-hero__wrap { position: relative; z-index: 1; }
.th-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.th-hero__eyebrow b { color: var(--ink); }
.th-hero__dots { display: inline-flex; gap: 4px; }
.th-hero__dots i { width: 9px; height: 9px; border-radius: 50%; }

.th-now { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow-lg); }
.th-now__phase { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.th-now h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.02; margin-top: 12px; }
.th-now h1 .script { font-family: var(--script); color: var(--accent); }
.th-now__sub { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; margin-top: 14px; max-width: 48ch; }
.th-now__sub b { color: var(--ink); }
.th-now__cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.th-now__aside { display: flex; flex-direction: column; gap: 12px; }

/* mini stat / kapacita / odpočet box */
.th-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface-2); }
.th-stat__l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.th-stat__v { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; margin-top: 8px; letter-spacing: -.02em; }
.th-stat__v small { font-size: .45em; font-weight: 700; color: var(--muted); }
.th-cap__bar { height: 9px; border-radius: 99px; background: color-mix(in oklab, var(--ink) 9%, transparent); overflow: hidden; margin-top: 12px; }
.th-cap__bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s var(--ease); }
.th-cap__note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.th-stat--count .th-stat__v { color: var(--accent); }

/* ============================================================
   ČASOVÁ OSA
   ============================================================ */
.th-tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.th-tl { position: relative; display: flex; flex-direction: column; }
.th-node { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.th-node__rail { position: relative; display: flex; justify-content: center; }
.th-node__dot { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; z-index: 1; border: 2px solid var(--line-strong); background: var(--surface); color: var(--muted); transition: all .2s; }
.th-node__dot svg { width: 21px; height: 21px; }
.th-node:not(:last-child) .th-node__rail::after { content: ""; position: absolute; top: 46px; bottom: -6px; width: 2.5px; background: var(--line); border-radius: 2px; }
.th-node__card { padding-bottom: 26px; min-width: 0; }
.th-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s, opacity .2s; overflow: hidden; }
/* jednořádkový layout: nadpis + popisek vedle + tlačítko vpravo; na mobilu se skládá pod sebe */
.th-card__row { display: flex; align-items: center; gap: 8px 14px; padding: 15px 20px; flex-wrap: wrap; }
.th-card__num { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.th-card__title { font-family: var(--display); font-weight: 800; font-size: clamp(17px, 2vw, 21px); flex: none; min-width: 0; letter-spacing: -.01em; }
.th-card__desc { color: var(--ink); font-size: 14.5px; line-height: 1.45; flex: 1 1 220px; min-width: 0; }
.th-card__desc.muted { color: var(--muted); }
.th-card__desc b { color: var(--ink); font-weight: 700; }
.th-card__cta { flex: none; margin-left: auto; white-space: nowrap; }
.th-card__extra { padding: 0 20px 18px; }
.th-chip { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .03em; padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; }
.th-chip svg { width: 12px; height: 12px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
@media (max-width: 680px) {
  .th-card__row { gap: 6px 10px; }
  .th-card__desc { flex-basis: 100%; order: 3; }
  .th-card__cta { margin-left: 0; order: 4; }
}

/* mini sub-tým (role se plní — jen dobré zprávy) */
.th-team { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.th-team__m { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; }
.th-team__av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 11px; flex: none; overflow: hidden; }
.th-team__av img { width: 100%; height: 100%; object-fit: cover; }
.th-team__m b { font-family: var(--display); }
.th-team__m span { color: var(--muted); }

/* —— stavy uzlů —— */
.th-node--done .th-node__dot { background: var(--zelena); border-color: var(--zelena); color: #fff; }
.th-node--done .th-node__rail::after { background: var(--zelena); }
.th-node--done .th-card { background: color-mix(in oklab, var(--zelena) 4%, var(--surface)); border-color: color-mix(in oklab, var(--zelena) 24%, var(--line)); }
.th-node--done .th-card__title { font-size: 17px; }
.th-chip--done { color: var(--zelena); background: color-mix(in oklab, var(--zelena) 13%, transparent); }
.th-node--active .th-node__dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 18%, transparent); }
.th-node--active .th-card { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 22%, transparent), var(--shadow); }
.th-chip--active { color: #fff; background: var(--accent); }
.th-chip--active i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: th-pulse 1.4s infinite; }
@keyframes th-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.th-chip--warn { color: #8a5e06; background: color-mix(in oklab, var(--zluta) 20%, transparent); }
.th-chip--full { color: var(--cervena); background: color-mix(in oklab, var(--cervena) 12%, transparent); }
.th-node--up .th-node__dot { border-style: dashed; }
.th-node--up .th-card { background: var(--surface-2); border-style: dashed; opacity: .82; }
.th-node--up .th-card__title { color: var(--muted); font-size: 17px; }
.th-chip--up { color: var(--muted); background: color-mix(in oklab, var(--ink) 6%, transparent); }
/* otevřeno — budoucí uzel, jehož stránka je už k dispozici (zelený, ale ne hotový) */
.th-node--open .th-node__dot { background: var(--zelena); border-color: var(--zelena); color: #fff; }
.th-node--open .th-node__rail::after { background: color-mix(in oklab, var(--zelena) 45%, var(--line)); }
.th-node--open .th-card { background: color-mix(in oklab, var(--zelena) 5%, var(--surface)); border-color: color-mix(in oklab, var(--zelena) 32%, var(--line)); }
.th-chip--open { color: var(--zelena); background: color-mix(in oklab, var(--zelena) 14%, transparent); }

/* —— táborový deníček (placeholder pro fázi 2) —— */
.th-diary__soon { text-align: center; padding: clamp(28px,4vw,48px); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); }
.th-diary__soon .script { font-family: var(--script); font-size: clamp(26px,3vw,34px); color: var(--accent); }
.th-diary__soon p { color: var(--muted); margin-top: 8px; }

@media (max-width: 900px) {
  .th-now { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .th-node { grid-template-columns: 44px 1fr; gap: 14px; }
  .th-node__dot { width: 38px; height: 38px; }
  .th-node:not(:last-child) .th-node__rail::after { top: 38px; }
}
