/* FireResults — prezentační web. Barvy dle specu 2026-08-12 (převzaté z aplikace). */

:root {
  --dark: #14171b;
  --dark-card: #1c2127;
  --dark-footer: #0f1216;
  --dark-border: #2a3038;
  --dark-border-soft: #262c34;
  --light: #f7f8fa;
  --card: #fff;
  --border: #e3e7ec;
  --ink: #1d2329;
  --muted: #5b6570;
  --muted-dark: #9aa3ad;
  --muted-darker: #6d7681;
  --red: #d63c30;
  --red-ink: #c62828;
  --red-bright: #ff4438;
  --red-soft: #fdecea;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--light); line-height: 1.5; }
img { max-width: 100%; display: block; }

.section-inner { max-width: 68rem; margin: 0 auto; padding: 3.5rem 1.5rem; }
h2 { font-size: 1.7rem; font-weight: 800; }

/* --- wordmark --- */
.brand { font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; text-decoration: none; }
.brand b { color: var(--red-bright); font-weight: 800; }
.brand--footer { font-size: inherit; color: var(--muted-darker); }
.brand--footer b { color: #a94a42; }

/* --- tlačítka --- */
.btn { display: inline-block; padding: 0.65rem 1.2rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #c23429; }
.btn--ghost { border: 1px solid #3a3f46; color: #cbd2d9; }
.btn--ghost:hover { border-color: var(--muted-dark); }
.btn--small { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* --- hlavička --- */
.site-header { background: var(--dark); border-bottom: 1px solid var(--dark-border); display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 1.5rem; position: sticky; top: 0; z-index: 10; }
.site-header .brand { font-size: 1.15rem; margin-right: auto; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: #cbd2d9; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: #fff; }

/* --- hero --- */
.hero-band { background: var(--dark); }
.hero { display: flex; align-items: center; gap: 2.5rem; max-width: 68rem; margin: 0 auto; padding: 4rem 1.5rem 3.5rem; }
.hero__copy { flex: 1.1; }
.hero h1 { color: #fff; font-size: 2.4rem; font-weight: 800; line-height: 1.15; }
.hero__lead { color: var(--muted-dark); margin-top: 0.9rem; max-width: 26rem; }
.hero__actions { display: flex; gap: 0.75rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero__viewer-note { color: var(--muted-darker); font-size: 0.85rem; margin-top: 1.2rem; }

/* --- výsledková tabule --- */
.scoreboard { flex: 1.2; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 0.75rem; padding: 1rem 1.1rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.scoreboard__head { display: flex; justify-content: space-between; color: var(--muted-dark); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.6rem; }
.scoreboard__live { color: var(--red-bright); }
.scoreboard table { width: 100%; border-collapse: collapse; }
.scoreboard th { color: var(--muted-darker); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; text-align: right; padding: 0 0 0.35rem; border-bottom: 1px solid var(--dark-border); }
.scoreboard th:first-child { text-align: left; }
.scoreboard td { color: #b7bfc7; font-size: 0.95rem; padding: 0.4rem 0 0.4rem 0.5rem; text-align: right; border-bottom: 1px solid var(--dark-border-soft); }
.scoreboard tr:last-child td { border-bottom: none; }
.scoreboard td:first-child { color: #e8ecef; font-family: var(--font); text-align: left; padding-left: 0; }
.scoreboard th.col-rank, .scoreboard td.col-rank { text-align: center; padding-left: 0.4rem; }
.scoreboard .col-target, .scoreboard .col-time { font-family: var(--font-mono); }
.scoreboard td.col-target { color: #7d868f; }
.scoreboard td.col-time { font-weight: 700; }
.scoreboard .is-leader td.col-time { color: var(--red-bright); }
.rank-badge { background: var(--red); color: #fff; border-radius: 99px; font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.45rem; }

/* --- funkce --- */
.features { background: var(--light); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 0.6rem; padding: 1.1rem; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 10px 24px rgba(29, 35, 41, 0.12); }
.card__icon { width: 2.2rem; height: 2.2rem; background: var(--red-soft); border-radius: 0.45rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 0.7rem; transition: transform 0.18s ease; }
.card:hover .card__icon { transform: scale(1.12); }
.card h3 { font-size: 0.98rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.86rem; margin-top: 0.35rem; }

/* --- průběh závodu --- */
.flow { background: var(--card); border-top: 1px solid var(--border); }
.flow__steps { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.4rem; }
.flow__steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; }
.flow__steps li::before { content: counter(step); color: var(--red-ink); font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.flow__steps h3 { font-size: 1rem; font-weight: 700; }
.flow__steps p { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* --- náhled aplikace --- */
.preview { background: var(--light); border-top: 1px solid var(--border); }
.preview__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.preview__hint { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* Náhled s porovnáním režimů: dva obrázky přes sebe, neviditelné poloviny přepínají
   viditelnost tmavé varianty (čisté CSS přes :has, bez JavaScriptu). */
.shot { position: relative; display: block; cursor: zoom-in; border-radius: 0.6rem; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.shot:hover { transform: scale(1.02); box-shadow: 0 12px 28px rgba(29, 35, 41, 0.18); }
.shot__img { display: block; border: 1px solid #cfd5db; border-radius: 0.6rem; }
.shot__img--dark { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s ease; border-color: #3a3f46; }
.shot:has(.shot__half--dark:hover) .shot__img--dark { opacity: 1; }
.shot__half { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; }
.shot__half--light { left: 0; }
.shot__half--dark { right: 0; }
.shot__badge { position: absolute; bottom: 0.5rem; z-index: 1; width: 1.5rem; height: 1.5rem; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; opacity: 0; transition: opacity 0.18s ease; pointer-events: none; }
.shot__badge--light { left: 0.5rem; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.shot__badge--dark { right: 0.5rem; background: var(--dark-card); color: #e8ecef; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); z-index: 3; }
.shot:hover .shot__badge { opacity: 0.9; }
.preview figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.45rem; }

/* --- lightbox (:target, bez JS) --- */
.lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 22, 0.88); padding: 2rem; }
.lightbox:target { display: flex; align-items: center; justify-content: center; }
.lightbox__backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; max-width: min(92vw, 1400px); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; border-radius: 0.6rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.lightbox__bar { display: flex; gap: 0.5rem; align-items: center; }
.lightbox__mode, .lightbox__close { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 99px; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: #cbd2d9; border: 1px solid #3a3f46; background: rgba(28, 33, 39, 0.9); }
a.lightbox__mode:hover, .lightbox__close:hover { color: #fff; border-color: var(--muted-dark); }
.lightbox__mode--on { background: var(--red); border-color: var(--red); color: #fff; }
.lightbox__close { margin-left: 0.8rem; }

/* --- kontakt --- */
.contact { background: var(--dark); text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: var(--muted-dark); max-width: 30rem; margin: 0.7rem auto 0; }
.contact .btn { margin-top: 1.2rem; }

/* --- patička --- */
.site-footer { background: var(--dark-footer); color: var(--muted-darker); font-size: 0.82rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 1.5rem; }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { color: var(--muted-darker); text-decoration: none; }
.site-footer a:hover { color: var(--muted-dark); }

/* --- responzivita --- */
@media (max-width: 60rem) {
  .hero { flex-direction: column; align-items: stretch; padding-top: 3rem; }
  .hero h1 { font-size: 2rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .preview__grid { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .site-nav { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: 1fr; }
  .scoreboard .col-target { display: none; }
  .site-footer { justify-content: center; text-align: center; }
}
