/**
 * Componente czx-* — bucăți de HTML personalizat reutilizabile în ORICE pagină
 * (formula scorului, exemplul de calcul, comparație editorial vs jucători,
 * scala de note). Încărcat global (front + editor) din inc/editorial-page.php.
 * Culori = design system cazino.ro, hardcodate ca să nu depindă de alt CSS.
 */

/* ---------- formula (panou navy) ---------- */
.czx-formula { background: #172E52; border-radius: 14px; padding: 26px 28px; margin: 18px 0; }
.czx-formula .czx-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F7CE74; margin: 0 0 12px; }
.czx-formula-row { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 17px; color: #fff; line-height: 1.6; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.czx-formula-row .eq { color: #F7CE74; }
.czx-frac { display: inline-flex; flex-direction: column; align-items: center; }
.czx-frac .up { border-bottom: 2px solid rgba(255, 255, 255, .5); padding: 0 8px 4px; }
.czx-frac .dn { padding-top: 4px; }
.czx-frac sub { font-size: 11px; }

/* ---------- exemplul de calcul ---------- */
.czx-example { border: 1px solid #DDE6EB; border-radius: 14px; overflow: hidden; margin: 0 0 18px; }
.czx-example-h { padding: 14px 20px; background: #F0F3F5; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #26404C; margin: 0; }
.czx-example-b { padding: 18px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.czx-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; color: #26404C; line-height: 2.1; }
.czx-chip { background: #F0F3F5; color: #203540; padding: 3px 8px; border-radius: 6px; }
.czx-chip.is-w { background: #FFF1EB; }
.czx-example-r { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed #C1CFD6; }
.czx-example-r .div { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; color: #59737F; white-space: nowrap; word-break: keep-all; }
.czx-example-r .res { font-size: 34px; font-weight: 800; color: #09AE4E; letter-spacing: -.02em; white-space: nowrap; word-break: keep-all; }
.czx-example-r .exp { font-size: 13px; color: #59737F; line-height: 18px; flex: 1 1 220px; min-width: 0; }

/* ---------- comparație: scor editorial vs nota jucătorilor ---------- */
.czx-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 26px; }
.czx-cmp-panel { border: 1px solid #DDE6EB; border-radius: 14px; padding: 22px; background: #fff; }
.czx-cmp-panel p { margin: 0 0 8px; font-size: 13.5px; line-height: 20px; color: #3D5866; }
.czx-cmp-panel p:last-child { margin-bottom: 0; }
.czx-cmp-panel .czx-cmp-big { font-size: 40px; font-weight: 800; color: #203540; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.czx-cmp-panel .czx-cmp-big small { font-size: 15px; font-weight: 400; color: #59737F; }
.czx-cmp-panel .czx-cmp-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #59737F; margin-bottom: 8px; }
.czx-cmp-panel.is-dark { background: #172E52; border-color: #172E52; }
.czx-cmp-panel.is-dark p { color: rgba(255, 255, 255, .8); }
.czx-cmp-panel.is-dark .czx-cmp-big { color: #fff; }
.czx-cmp-panel.is-dark .czx-cmp-big small { color: rgba(255, 255, 255, .55); }
.czx-cmp-panel.is-dark .czx-cmp-k { color: #F7CE74; }
.czx-stars { display: flex; align-items: center; gap: 3px; margin-bottom: 10px; }
.czx-stars .val { font-size: 15px; font-weight: 700; color: #26404C; margin-left: 6px; }

/* ---------- scala de note (ladder) ---------- */
.czx-ladder { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.czx-ladder > li { display: flex; align-items: center; gap: 16px; border-radius: 12px; padding: 14px 20px; background: #fff; border: 1px solid #DDE6EB; font-weight: 700; font-size: 15px; color: #203540; }
.czx-ladder > li strong { flex: none; width: 82px; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.czx-ladder > li .dot { flex: none; width: 10px; height: 10px; border-radius: 999px; }
.czx-ladder > li.is-exc { background: #F5FCF8; border-color: #ABEDC7; }
.czx-ladder > li.is-exc strong { color: #067434; }
.czx-ladder > li.is-exc .dot { background: #09AE4E; }
.czx-ladder > li.is-vg strong { color: #2F80ED; }
.czx-ladder > li.is-vg .dot { background: #2F80ED; }
.czx-ladder > li.is-good strong { color: #B5720C; }
.czx-ladder > li.is-good .dot { background: #E5941F; }
.czx-ladder > li.is-ok strong { color: #B5720C; }
.czx-ladder > li.is-ok .dot { background: #FC935F; }
.czx-ladder > li.is-bad strong { color: #E13011; }
.czx-ladder > li.is-bad .dot { background: #EE4425; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .czx-cmp { grid-template-columns: 1fr; }
  .czx-formula-row { font-size: 14px; }
}
