/**
 * assets/css/thankyou.css — děkovná stránka Z-AGENCY (port TH v3 vzoru,
 * 26. 8. 2026 v noci na pokyn Jirky: „vymazlená jak na terrahunt").
 * Enqueue jen na page-templates/template-thankyou.php (inc/assets.php).
 * Prefix .thn- kvůli kolizím s mirrorovaným main.css (byte-identical bundle,
 * needituje se). Paleta už v TH vzoru byla brandová cyan #00B7CD.
 */


.thn-wrap { padding:34px 0 56px; }
.thn-head { text-align:center; margin:0 0 30px; }
.thn-head h1 { margin:0 0 8px; }
.thn-head p { margin:0; font-size:17px; color:#4b5a59; }
.thn-eta { display:inline-block; margin:14px 0 0; padding:9px 18px; background:#eef9fb;
           border:1px solid #cfeef4; border-radius:999px; font-size:15px; color:#12484f; font-weight:600; }

/* stretch, ne start -- jinak levá karta skončí výš a pod ní visí prázdno */
.thn-cols { display:grid; grid-template-columns:1.15fr 1fr; gap:22px; align-items:stretch; }
@media (max-width:900px){ .thn-cols { grid-template-columns:1fr; gap:16px; } }
.thn-cols > div { display:flex; flex-direction:column; }
.thn-cols > div > .thn-box:only-child { flex:1 1 auto; }

/* prostor pod kroky nese informaci, ne dekoraci: co si připravit na hovor */
.thn-prep { margin-top:auto; padding-top:18px; border-top:1px solid #eef3f4; }
.thn-prep-title { font-size:13px; font-weight:700; color:#1C2727; margin:0 0 10px; }
.thn-prep-list { display:flex; gap:8px; flex-wrap:wrap; margin:0; padding:0; list-style:none; }
.thn-prep-list li::before, .thn-prep-list li::after { content:none !important; display:none !important; }
.thn-prep-list li { background:#f1f9fa; border:1px solid #dff0f3; border-radius:999px;
                    padding:7px 14px; font-size:13px; color:#12484f; }

.thn-box { background:#fff; border:1px solid #e4ecee; border-radius:12px; padding:22px 24px; }
.thn-box + .thn-box { margin-top:16px; }
.thn-box h2 { font-size:19px; margin:0 0 14px; color:#1C2727; }
.thn-box h3 { font-size:17px; margin:0 0 12px; color:#1C2727; }

/* téma lepí vlastní odrážku na KAŽDÝ `main ul li::before` (šipka) -- ta se
   nám kryla s číselným kolečkem, proto se tady vypíná */
.thn-steps { list-style:none; margin:0; padding:0; }
.thn-steps li::before, .thn-steps li::after { content:none !important; display:none !important; }
.thn-steps li { display:flex; gap:12px; align-items:flex-start; padding:0 0 11px; font-size:15px; line-height:1.5; color:#43514f; }
.thn-steps li:last-child { padding-bottom:0; }
.thn-num { flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:#00B7CD; color:#fff;
           font-size:13px; font-weight:700; line-height:24px; text-align:center; }
.thn-note { margin:14px 0 0; font-size:13px; line-height:1.55; color:#7b8a8a; }

.thn-urgent { background:#1C2727; border-radius:12px; padding:22px 24px; }
.thn-urgent h3 { color:#fff; margin:0 0 6px; font-size:18px; }
.thn-urgent p { color:#bccaca; font-size:14px; line-height:1.5; margin:0 0 14px; }
.thn-urgent a { display:inline-block; background:#00B7CD; color:#fff !important; text-decoration:none;
                font-size:18px; font-weight:700; padding:12px 22px; border-radius:8px; }
.thn-urgent a:hover { background:#00a2b6; }

.thn-p { display:flex; gap:13px; align-items:center; padding:11px 0; border-top:1px solid #eef3f4; }
.thn-p:first-of-type { border-top:0; padding-top:0; }
.thn-p:last-child { padding-bottom:0; }
.thn-p img { width:64px; height:64px; flex:0 0 64px; border-radius:50%; object-fit:cover; }
.thn-p-name { font-size:15px; font-weight:700; color:#1C2727; line-height:1.2; }
.thn-p-role { font-size:10.5px; text-transform:uppercase; letter-spacing:.6px; color:#8b9a9a; margin:2px 0 5px; }
.thn-p-link { display:block; font-size:13.5px; line-height:1.45; color:#0f8ea0 !important; text-decoration:none; }
.thn-p-link:hover { text-decoration:underline; }

.thn-tiles { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
@media (max-width:700px){ .thn-tiles { grid-template-columns:1fr; } }
.thn-tile { position:relative; display:block; border-radius:12px; overflow:hidden; text-decoration:none;
            border:1px solid #e4ecee; background:#fff; }
/* obal obrázku: play se pozicuje k NĚMU, ne k celé dlaždici (jinak sedí na tváři).
   height s !important, protože téma má na img vlastní pravidlo s vyšší specificitou. */
.thn-tile-media { position:relative; display:block; }
.thn-tile img { display:block; width:100%; height:190px !important; object-fit:cover; object-position:50% 32%; }
/* YouTube hqdefault je 4:3 s černými pruhy -- centrovaný ořez je odřízne
   přesně (16:9 výřez = prostředních 75 % výšky), posun z 50 % by pruh ukázal */
.thn-tile img.thn-tile-yt { object-position:50% 50%; }
.thn-tile-body { display:block; padding:13px 15px 15px; }
.thn-tile-name { display:block; font-size:15px; font-weight:700; color:#1C2727; line-height:1.3; }
.thn-tile-sub { display:block; font-size:13px; color:#6b7a79; margin:4px 0 0; line-height:1.45; }
.thn-tile-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
                 width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.94);
                 display:flex; align-items:center; justify-content:center;
                 box-shadow:0 3px 14px rgba(0,0,0,.22); }
.thn-tile:hover .thn-tile-play { background:#fff; }
.thn-tile-play:after { content:""; border-left:15px solid #00B7CD; border-top:10px solid transparent;
                       border-bottom:10px solid transparent; margin-left:5px; }

/* PÁS RECENZÍ */
.thn-revs { margin-top:18px; background:#f6fafb; border:1px solid #e4ecee; border-radius:12px;
            padding:16px 0 18px; overflow:hidden; }
.thn-revs-head { display:flex; justify-content:space-between; align-items:baseline; gap:14px;
                 flex-wrap:wrap; padding:0 20px 12px; }
.thn-revs-head h2 { font-size:18px; margin:0; color:#1C2727; }
.thn-revs-head a { font-size:13px; color:#0f8ea0; text-decoration:none; font-weight:600; }
.thn-revs-head a:hover { text-decoration:underline; }
/* Doba animace přichází z šablony jako `--thn-dur`, protože závisí na POČTU
 * recenzí: pevná hodnota by pás s každou přidanou recenzí zrychlila. Šablona
 * ji počítá z cílové rychlosti 40 px/s (viz komentář u $thn_rev_speed).
 * Záloha 340s odpovídá 43 recenzím, tedy stavu k 31. 8. 2026 — kdyby proměnná
 * chyběla, pás pojede správně pomalu, jen se přestane přizpůsobovat počtu. */
.thn-track { display:flex; gap:14px; width:max-content; animation:thn-scroll var(--thn-dur, 340s) linear infinite; }
.thn-revs:hover .thn-track, .thn-revs:focus-within .thn-track { animation-play-state:paused; }
/* bez animace musí zůstat recenze dostupné: pás se dá ručně poscrollovat */
@media (prefers-reduced-motion:reduce){ .thn-track { animation:none; } .thn-revs { overflow-x:auto; } }
@keyframes thn-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
/* Karty = stejná řeč jako Google recenze na stránce Reference (reviews.css):
   z-agency červená #f5074c, hvězdy #fbbc04, klamp + „Celá recenze".
   [Jirka 27. 8.] Výška karty se NEřídí nejdelší recenzí — text se zkracuje
   na 4 řádky a zbytek odkryje tlačítko (vzor .gbp-review-more). */
.thn-rev { flex:0 0 300px; display:flex; flex-direction:column; background:#fff;
           border:1px solid #e8eaed; border-radius:12px; padding:14px 16px; }
.thn-rev-top { display:flex; align-items:center; gap:9px; }
.thn-rev-ini { flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:#f5074c; color:#fff;
               font-size:11px; font-weight:700; line-height:30px; text-align:center; }
.thn-rev-name { display:block; font-size:13.5px; font-weight:700; color:#202124; line-height:1.2; }
.thn-rev-when { display:block; font-size:11px; color:#5f6368; margin-top:1px; }
.thn-rev-stars { margin-left:auto; color:#fbbc04; font-size:12px; letter-spacing:1px; white-space:nowrap; }
.thn-rev-text { margin:9px 0 0; font-size:13.5px; line-height:1.5; color:#3c4043;
                display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.thn-rev-text.thn-expanded { display:block; -webkit-line-clamp:unset; overflow:visible; }
.thn-rev-more { align-self:flex-start; margin-top:8px; padding:0; border:none; background:none;
                font-size:12.5px; font-weight:700; color:#f5074c; cursor:pointer; text-decoration:underline; }
.thn-rev-more[hidden] { display:none; }

/* dlaždice videa se táhne na stejnou výšku jako hra: grid stretchuje,
   dlaždice je flex-column a obrázek vyplní zbytek (proto height:100%). */
.thn-bottom { display:grid; grid-template-columns:1fr 1.7fr; gap:16px; margin-top:16px; align-items:stretch; }
@media (max-width:900px){ .thn-bottom { grid-template-columns:1fr; } }
.thn-bottom > .thn-tile { display:flex; flex-direction:column; height:100%; }
/* [Jirka 27. 8.] Žádné prázdné místo pod videem: poster VYPLNÍ celou výšku
   dlaždice (cover ořez), textový pruh sedí kompaktně dole — hra vedle je
   vyšší než TH varianta, 16:9 ořez tu nechával bílou díru. */
.thn-bottom > .thn-tile .thn-tile-media { flex:1 1 auto; position:relative; min-height:190px; }
.thn-bottom > .thn-tile img { position:absolute; inset:0; width:100%; height:100% !important;
                              object-fit:cover; object-position:50% 50%; }
.thn-bottom > .thn-tile .thn-tile-body { flex:0 0 auto; padding:14px 20px 16px; }
.thn-bottom > .thn-tile .thn-tile-name { font-size:17px; }
.thn-bottom > .thn-tile .thn-tile-sub { font-size:14px; margin-top:6px; }

.thn-game { margin-top:0; background:#0f1a1a; border-radius:14px; padding:20px 22px 22px; }
.thn-game-head { display:flex; justify-content:space-between; align-items:baseline; gap:14px; flex-wrap:wrap; }
.thn-game-head h2 { color:#fff; margin:0; font-size:19px; }
.thn-score { font-size:15px; color:#7fe3f0; font-weight:700; white-space:nowrap; }
.thn-game-sub { color:#9fb1b1; font-size:13px; line-height:1.5; margin:6px 0 10px; }
#thn-canvas { width:100%; display:block; border-radius:9px; background:#132020; touch-action:none; }
/* hru ovládá jen fokusovaný canvas -- ring říká, že je „ozbrojená" */
#thn-canvas:focus-visible { outline:2px solid #00B7CD; outline-offset:2px; }
.thn-game-foot { display:flex; gap:14px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.thn-game-foot span { color:#9fb1b1; font-size:12.5px; }
.thn-ghost { background:transparent; border:1px solid #2f4444; color:#cfe3e3 !important; text-decoration:none;
             border-radius:8px; padding:9px 16px; font-size:14px; font-weight:600; cursor:pointer; }
.thn-ghost:hover { border-color:#00B7CD; color:#fff !important; }

/* LIGHTBOX (fallback tam, kde fullscreen na prvku nejde -- typicky iOS Safari) */
body.thn-lb-open { overflow:hidden; }
.thn-game.thn-lb { position:fixed; inset:0; z-index:9999; margin:0; border-radius:0;
                   display:flex; flex-direction:column; padding:20px 22px 22px; }
.thn-game.thn-lb #thn-canvas { flex:1 1 auto; height:auto !important; }
/* i v nativním fullscreenu vyplnit celou plochu */
.thn-game:fullscreen { display:flex; flex-direction:column; border-radius:0; padding:22px 26px; }
.thn-game:fullscreen #thn-canvas { flex:1 1 auto; height:auto !important; }
/* ve zvětšeném režimu je tlačítko výraznější, ať je jasné, jak se vrátit */
.thn-game.thn-lb .thn-ghost, .thn-game:fullscreen .thn-ghost { border-color:#00B7CD; color:#fff !important; }

/* START OVERLAY — hra běží až po kliknutí (ORCH typ 2: lazy, nulový CWV dopad) */
.thn-stage { position:relative; }
.thn-game.thn-lb .thn-stage, .thn-game:fullscreen .thn-stage { flex:1 1 auto; display:flex; }
.thn-game.thn-lb .thn-stage #thn-canvas, .thn-game:fullscreen .thn-stage #thn-canvas { flex:1 1 auto; }
.thn-start { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column;
             gap:12px; align-items:center; justify-content:center;
             background:rgba(15,26,26,.55); border-radius:9px; }
.thn-start[hidden] { display:none; }
.thn-start p { color:#cfe3e3; font-size:14px; margin:0; text-align:center; padding:0 20px; }
/* odkaz na střelecké programy pod hrou */
.thn-game-link { color:#7fe3f0 !important; text-decoration:underline; font-size:12.5px; }
.thn-game-link:hover { color:#fff !important; }
