/* =====================================================================================
   B-HOOD panel — „Top mașini” (general/top-cars), 01.10.2026
   Tokeni din bh-glass.css (--g-*) cu rezerve, ca pagina sa arate bine si in tema clasica.
   Fara backdrop-filter pe carduri, fara animation-fill-mode pe containere.
   ===================================================================================== */
.bh-tc {
    --tc-pane-a: var(--g-pane-a, rgba(255, 255, 255, .068));
    --tc-pane-b: var(--g-pane-b, rgba(255, 255, 255, .026));
    --tc-edge: var(--g-edge, rgba(255, 255, 255, .085));
    --tc-edge-2: var(--g-edge-2, rgba(255, 255, 255, .14));
    --tc-strong: var(--g-strong, #fff);
    --tc-text: var(--g-text, #e6ecea);
    --tc-text-2: var(--g-text-2, #c3cdc9);
    --tc-muted: var(--g-muted, #8f9d98);
    --tc-green: var(--g-green, #17c964);
    --tc-green-d: var(--g-green-d, #13b653);
    --tc-green-soft: var(--g-green-soft, rgba(23, 201, 100, .14));
    --tc-green-edge: var(--g-green-edge, rgba(23, 201, 100, .38));
    --tc-gold: var(--g-gold, #f3bd3e);
    --tc-silver: #c9d3d8;
    --tc-bronze: #d08a52;
    --tc-tint: var(--g-tint, rgba(255, 255, 255, .045));
    --tc-tint-2: var(--g-tint-2, rgba(255, 255, 255, .085));
    --tc-line: var(--g-line, rgba(255, 255, 255, .06));
    --tc-r: var(--g-r, 12px);
    --tc-r-lg: var(--g-r-lg, 18px);
    --tc-hi: var(--g-hi, inset 0 1px 0 rgba(255, 255, 255, .11));
    --tc-shadow: var(--g-shadow, 0 12px 32px -12px rgba(0, 0, 0, .55));
    --tc-input: var(--g-input, rgba(0, 0, 0, .25));
    color: var(--tc-text);
    min-width: 0;
}
html.bh-glass[data-bh-theme="light"] .bh-tc {
    --tc-silver: #7d8a92;
    --tc-bronze: #a5622d;
    --tc-gold: #b8860b;
}
.bh-tc *, .bh-tc *::before, .bh-tc *::after { box-sizing: border-box; }
.bh-tc [hidden] { display: none !important; }
.bh-tc .card { height: auto; }

/* ---------- antet ---------- */
.bh-tc .tc-hero .card-body { padding: 20px 22px; }
.bh-tc .tc-hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.bh-tc .tc-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--tc-strong); letter-spacing: -.01em; line-height: 1.2; }
.bh-tc .tc-title i { color: var(--tc-gold); }
.bh-tc .tc-lead { margin: 6px 0 0; color: var(--tc-text-2); font-size: 14px; }
.bh-tc .tc-upd { font-size: 12px; color: var(--tc-muted); padding: 4px 10px; border-radius: 999px; background: var(--tc-tint); border: 1px solid var(--tc-edge); white-space: nowrap; }
.bh-tc .tc-rules { list-style: none; counter-reset: tc; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bh-tc .tc-rules li { counter-increment: tc; position: relative; padding: 10px 12px 10px 44px; border-radius: var(--tc-r); background: var(--tc-tint); border: 1px solid var(--tc-edge); min-width: 0; }
.bh-tc .tc-rules li::before { content: counter(tc); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--tc-green-soft); color: var(--tc-green); border: 1px solid var(--tc-green-edge); }
.bh-tc .tc-rules b { display: block; color: var(--tc-strong); font-size: 13.5px; }
.bh-tc .tc-rules span { display: block; color: var(--tc-muted); font-size: 12px; line-height: 1.4; }
.bh-tc .tc-how { margin-top: 12px; font-size: 13px; color: var(--tc-text-2); }
.bh-tc .tc-how summary { cursor: pointer; color: var(--tc-green); font-weight: 600; width: max-content; max-width: 100%; }
.bh-tc .tc-how p { margin: 8px 0 0; line-height: 1.55; max-width: 80ch; }
.bh-tc .tc-how code { color: var(--tc-strong); background: var(--tc-tint-2); padding: 0 5px; border-radius: 5px; }

/* ---------- unelte ---------- */
.bh-tc .tc-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.bh-tc .tc-search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; height: 42px; border-radius: var(--tc-r); background: var(--tc-input); border: 1px solid var(--tc-edge); color: var(--tc-muted); }
.bh-tc .tc-search:focus-within { border-color: var(--tc-green-edge); }
.bh-tc .tc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--tc-strong); font-size: 14px; height: 100%; }
.bh-tc .tc-search input::placeholder { color: var(--tc-muted); }
.bh-tc .tc-select { flex: 0 1 220px; min-width: 0; height: 42px; padding: 0 12px; border-radius: var(--tc-r); background: var(--tc-input); border: 1px solid var(--tc-edge); color: var(--tc-strong); font-size: 14px; }
.bh-tc .tc-select option { background: var(--g-option-bg, #101718); color: var(--tc-strong); }

/* ---------- podium ---------- */
.bh-tc .tc-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 16px; }
.bh-tc .tc-pod {
    --tc-medal: var(--tc-gold);
    position: relative; min-width: 0; padding: 18px 16px 14px; border-radius: var(--tc-r-lg);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tc-medal) 14%, transparent), var(--tc-pane-b) 55%), linear-gradient(180deg, var(--tc-pane-a), var(--tc-pane-b));
    border: 1px solid color-mix(in srgb, var(--tc-medal) 38%, var(--tc-edge));
    box-shadow: var(--tc-hi), var(--tc-shadow);
    display: flex; flex-direction: column; gap: 8px;
}
.bh-tc .tc-pod--gold { order: 2; padding-top: 26px; }
.bh-tc .tc-pod--silver { order: 1; --tc-medal: var(--tc-silver); }
.bh-tc .tc-pod--bronze { order: 3; --tc-medal: var(--tc-bronze); }
.bh-tc .tc-pod-rank { position: absolute; top: 12px; left: 14px; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: #15110a; background: var(--tc-medal); box-shadow: 0 6px 16px -6px var(--tc-medal); }
.bh-tc .tc-pod-img { height: 120px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.bh-tc .tc-pod--gold .tc-pod-img { height: 140px; }
.bh-tc .tc-pod-img img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.bh-tc .tc-pod-name { margin: 0; font-size: 17px; font-weight: 800; color: var(--tc-strong); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-tc .tc-pod-owner { font-size: 13px; color: var(--tc-muted); min-width: 0; overflow-wrap: anywhere; }
.bh-tc .tc-pod-float { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bh-tc .tc-pod-float b { font-size: 34px; line-height: 1; font-weight: 900; color: var(--tc-medal); font-variant-numeric: tabular-nums; }
.bh-tc .tc-pod-float span { font-size: 12px; color: var(--tc-muted); text-transform: uppercase; letter-spacing: .05em; }
.bh-tc .tc-pod-facts { margin: 0; display: grid; gap: 6px; }
.bh-tc .tc-pod-facts > div { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--tc-line); min-width: 0; }
.bh-tc .tc-pod-facts dt { font-weight: 500; font-size: 12px; color: var(--tc-muted); flex: 0 0 auto; }
.bh-tc .tc-pod-facts dd { margin: 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--tc-strong); min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bh-tc .tc-pod-facts dd small { display: block; font-weight: 500; color: var(--tc-muted); font-size: 11.5px; }
.bh-tc .tc-pod-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.bh-tc .tc-pod-foot .tc-btn { margin-left: auto; }

/* ---------- lista ---------- */
.bh-tc .tc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bh-tc .tc-row {
    display: grid; grid-template-columns: 34px 84px minmax(0, 1fr) 92px minmax(0, 330px) auto; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--tc-r); min-width: 0;
    background: linear-gradient(180deg, var(--tc-pane-a), var(--tc-pane-b)); border: 1px solid var(--tc-edge); box-shadow: var(--tc-hi);
}
.bh-tc .tc-row--gold { border-color: color-mix(in srgb, var(--tc-gold) 45%, var(--tc-edge)); }
.bh-tc .tc-row--silver { border-color: color-mix(in srgb, var(--tc-silver) 45%, var(--tc-edge)); }
.bh-tc .tc-row--bronze { border-color: color-mix(in srgb, var(--tc-bronze) 45%, var(--tc-edge)); }
.bh-tc .tc-rank { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--tc-tint); border: 1px solid var(--tc-edge); color: var(--tc-text-2); font-variant-numeric: tabular-nums; }
.bh-tc .tc-row--gold .tc-rank { background: var(--tc-gold); color: #15110a; border-color: transparent; }
.bh-tc .tc-row--silver .tc-rank { background: var(--tc-silver); color: #15110a; border-color: transparent; }
.bh-tc .tc-row--bronze .tc-rank { background: var(--tc-bronze); color: #15110a; border-color: transparent; }
.bh-tc .tc-img { width: 84px; height: 48px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .4)); }
.bh-tc .tc-main { min-width: 0; }
.bh-tc .tc-name { color: var(--tc-strong); font-weight: 700; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-tc .tc-nick { color: var(--tc-muted); font-weight: 500; font-style: italic; }
.bh-tc .tc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--tc-muted); margin-top: 2px; min-width: 0; }
.bh-tc a { color: var(--g-link, var(--tc-green)); }
.bh-tc .tc-meta a, .bh-tc .tc-pod-owner a { color: var(--tc-text-2); text-decoration: underline; text-decoration-color: var(--tc-edge-2); text-underline-offset: 2px; }
.bh-tc .tc-meta a:hover, .bh-tc .tc-pod-owner a:hover { color: var(--tc-green); }
.bh-tc .tc-id { font-size: 11px; color: var(--tc-muted); font-variant-numeric: tabular-nums; }
.bh-tc .tc-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--tc-tint-2); color: var(--tc-text-2); white-space: nowrap; }
.bh-tc .tc-chip--ecu { background: var(--tc-green-soft); color: var(--tc-green); }
.bh-tc .tc-float { text-align: center; line-height: 1; }
.bh-tc .tc-float b { display: block; font-size: 26px; font-weight: 900; color: var(--tc-strong); font-variant-numeric: tabular-nums; }
.bh-tc .tc-float span { display: block; margin-top: 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--tc-muted); }
.bh-tc .tc-cell { min-width: 0; font-size: 13px; font-weight: 700; color: var(--tc-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.35; }
.bh-tc .tc-cell small { display: block; font-weight: 500; font-size: 11.5px; color: var(--tc-muted); }
.bh-tc .tc-k { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tc-muted); }
/* investit in tuning: gems / PP / bani = cheile 2-4 ale ordinii, fiecare in coloana lui */
.bh-tc .tc-invs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; min-width: 0; }
.bh-tc .tc-invs .tc-cell.is-zero { color: var(--tc-muted); font-weight: 500; }
.bh-tc .tc-cell.is-gems b { color: #3ee6c8; }
.bh-tc .tc-cell.is-pp b { color: #f3bd3e; }
html.bh-glass[data-bh-theme="light"] .bh-tc .tc-cell.is-gems b { color: #0d8f7a; }
html.bh-glass[data-bh-theme="light"] .bh-tc .tc-cell.is-pp b { color: #a8740c; }
.bh-tc .tc-cell b { font-weight: 800; }

.bh-tc .tc-btn {
    appearance: none; cursor: pointer; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
    background: var(--tc-green-soft); color: var(--tc-green); border: 1px solid var(--tc-green-edge); line-height: 1.2;
}
.bh-tc .tc-btn:hover, .bh-tc .tc-btn:focus-visible { background: var(--tc-green); color: var(--g-green-ink, #04130a); outline: 0; }
html.bh-glass[data-bh-theme="light"] .bh-tc .tc-btn { color: var(--tc-green-d); }
html.bh-glass[data-bh-theme="light"] .bh-tc .tc-btn:hover { color: #fff; background: var(--tc-green-d); }

.bh-tc .tc-more-wrap { display: flex; justify-content: center; margin-top: 14px; }
.bh-tc .tc-more { appearance: none; cursor: pointer; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 13.5px; background: var(--tc-tint); color: var(--tc-strong); border: 1px solid var(--tc-edge-2); }
.bh-tc .tc-more:hover { border-color: var(--tc-green-edge); color: var(--tc-green); }
.bh-tc .tc-nomatch, .bh-tc .tc-empty .card-body { text-align: center; color: var(--tc-muted); padding: 18px; margin: 0; }
.bh-tc .tc-foot { margin: 14px 0 0; font-size: 12px; color: var(--tc-muted); text-align: center; }

/* ---------- tableta ---------- */
@media (max-width: 1199.98px) {
    .bh-tc .tc-row { grid-template-columns: 30px 72px minmax(0, 1fr) 76px minmax(0, 270px) auto; gap: 10px; }
    .bh-tc .tc-img { width: 72px; }
}
@media (max-width: 991.98px) {
    .bh-tc .tc-podium { grid-template-columns: 1fr; }
    .bh-tc .tc-pod--gold, .bh-tc .tc-pod--silver, .bh-tc .tc-pod--bronze { order: 0; padding-top: 18px; }
    .bh-tc .tc-pod { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: center; }
    .bh-tc .tc-pod-img, .bh-tc .tc-pod--gold .tc-pod-img { grid-row: 1 / span 4; height: 100px; }
    .bh-tc .tc-pod-facts, .bh-tc .tc-pod-foot { grid-column: 1 / -1; }
    .bh-tc .tc-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- telefon (375 px) ---------- */
@media (max-width: 575.98px) {
    .bh-tc .tc-hero .card-body { padding: 16px; }
    .bh-tc .tc-title { font-size: 21px; }
    .bh-tc .tc-pod { grid-template-columns: 96px minmax(0, 1fr); padding: 14px 12px 12px; }
    .bh-tc .tc-pod-img, .bh-tc .tc-pod--gold .tc-pod-img { height: 70px; grid-row: 1 / span 3; margin-top: 26px; }
    .bh-tc .tc-pod-rank { top: 10px; left: 10px; width: 30px; height: 30px; font-size: 14px; }
    .bh-tc .tc-pod-float b { font-size: 28px; }
    .bh-tc .tc-pod-name { font-size: 15.5px; white-space: normal; }
    .bh-tc .tc-select { flex: 1 1 100%; }
    .bh-tc .tc-row {
        grid-template-columns: 28px 64px minmax(0, 1fr) auto;
        grid-template-areas: "rank img main float" "inv inv inv inv" "btn btn btn btn";
        gap: 8px 10px; padding: 10px 12px;
    }
    .bh-tc .tc-rank { grid-area: rank; width: 28px; height: 28px; }
    .bh-tc .tc-img { grid-area: img; width: 64px; height: 38px; }
    .bh-tc .tc-main { grid-area: main; }
    .bh-tc .tc-float { grid-area: float; }
    .bh-tc .tc-float b { font-size: 22px; }
    .bh-tc .tc-invs { grid-area: inv; padding-top: 6px; border-top: 1px solid var(--tc-line); }
    .bh-tc .tc-btn--sm { grid-area: btn; width: 100%; }
}
