/* Doladění nového vzhledu pro Koně (3. 11. 2026). Načítá se jako poslední; vrstvy převzaté ze Psů zůstávají beze změny.
   Obsahuje jen to, co je u Koní jiné než u Psů: koňská hlava místo psí siluety a značka valacha. */

/* Karta bez fotky: jemné vínové pozadí a koňská hlava (emoji) místo psí siluety */
html.compact-preview :is(.compact-avatar .sq-avatar, .cx-photo):not(:has(img)) {
  font-size: 44px !important; line-height: 1 !important; color: initial !important;
  display: flex !important; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ffeef1, #fddce2) !important;
}
html.dark.compact-preview :is(.compact-avatar .sq-avatar, .cx-photo):not(:has(img)) {
  background: linear-gradient(160deg, #3e121b, #2b0d14) !important;
}

/* Valach: malá značka v rohu fotky (dřív pod ní, což rozbilo dlaždici) */
html.compact-preview .compact-avatar { position: relative !important; }
html.compact-preview .compact-avatar > .gelding-mark {
  position: absolute !important; right: 4px !important; bottom: 4px !important; left: auto !important; top: auto !important;
  margin: 0 !important; width: 20px !important; height: 20px !important; min-width: 0 !important; max-width: 20px !important; max-height: 20px !important;
  border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center;
  background: #fff !important; border: 1.5px solid var(--accent) !important; color: var(--accent) !important;
  font-size: 13px !important; font-weight: 700; line-height: 1 !important; transform: none !important; z-index: 2;
}
html.dark.compact-preview .compact-avatar > .gelding-mark { background: var(--surface) !important; }

/* Tlačítko Zavřít v oknech: koňská vínová (původně modrá ze Psů) */
.btn-close { background: #f7e9ec; color: #962d43; border-color: #cc6e7f; }
html.dark .btn-close { background: #3e121b; color: #e57388; border-color: #962d43; }

/* Pruh s hříbaty v detailu koně: vínový místo modrého */
.compact-full-card .cat-pups-toggle-bar, .cat-pups-toggle-bar { background: #f7e9ec !important; border-color: #962d43 !important; }
.cat-pups-count-badge { background: #962d43 !important; color: #fff !important; }
.cat-pups-title-wrap, .cat-pups-detail-text, .cat-pups-sex-summary, .cat-pups-toggle-right { color: #962d43 !important; }
.cat-pups-toggle-chevron { background: #f2d9de !important; color: #962d43 !important; }
html.dark .cat-pups-toggle-bar { background: #3e121b !important; border-color: #e57388 !important; }
html.dark .cat-pups-title-wrap, html.dark .cat-pups-detail-text, html.dark .cat-pups-sex-summary, html.dark .cat-pups-toggle-right { color: #e57388 !important; }
html.dark .cat-pups-toggle-chevron { background: #521823 !important; color: #e57388 !important; }

/* Tlačítka ve spodní části formuláře: text se nesmí lámat uprostřed slova (Rodokmen) */
.psi-okno-win .modal-footer button { white-space: nowrap; hyphens: none; overflow-wrap: normal; word-break: normal; padding-left: 6px; padding-right: 6px; font-size: .9em; }

/* ── Rodokmen Koní: zkratky jazyků se nelámou po písmenech, jména předků se nelámou uprostřed slova (4. 11. 2026) ── */
#pedigree-overlay .modal > div:first-child { flex-wrap: wrap; gap: 8px; }
#pedigree-overlay .modal > div:first-child > div { flex-shrink: 0; }
#pedigree-overlay .pedigree-lang-btn { white-space: nowrap; min-width: 34px; min-height: 36px; }
@media (max-width: 520px) {
  html body #pedigree-overlay #pedigree-content { padding: 8px !important; }
  #pedigree-overlay .pdg-node { padding: 6px 3px !important; min-width: 0 !important; }
  #pedigree-overlay .pdg-node > div { overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; }
  #pedigree-overlay .pdg-node > div[style*="font-size:14px"] { font-size: 12px !important; }
}
@media (max-width: 400px) {
  #pedigree-overlay .pdg-node > div[style*="font-size:14px"] { font-size: 11px !important; white-space: nowrap !important; }
}

/* Hodnocení: tlačítko do obchodu po 4–5★ (převzato z Koček) */
html body #review-prompt-modal #review-store-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:6px; margin-bottom:12px; }
html body #review-prompt-modal .review-store-btn { display:flex; align-items:center; justify-content:center; text-align:center; min-height:56px; padding:8px 10px; border:1px solid #7a5a00; border-radius:6px; background:#fff6d9; color:#5c4300; font-family:inherit; font-size:15px; font-weight:800; cursor:pointer; touch-action:manipulation; }
html.dark body #review-prompt-modal .review-store-btn { background:#3b3210; border-color:#f0d36a; color:#f0d36a; }

/* Hodnocení: křížek ✕ v rohu okna (převzato z Koček) */
html body #review-prompt-modal .rv-x { position:absolute; right:10px; top:10px; width:44px; height:44px; padding:0; display:flex; align-items:center; justify-content:center; border:1px solid #3b2a7a; border-radius:6px; background:var(--surface,#fff); color:var(--text,#1a1814); font-size:15px; cursor:pointer; touch-action:manipulation; }
html.dark body #review-prompt-modal .rv-x { border-color:#8f7fc8; }
