/* translations.batocera.org : ce qui s'ajoute à site.css (copie de celui de batocera.org) */

.tr-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1.3rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.tr-facts strong { margin-right: .3rem; font: 800 1.25rem/1 var(--mono); color: var(--text); }

/* barre de progression */
.tr-bar { display: inline-block; vertical-align: middle; width: 100%; height: 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.tr-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--orange)); }
.tr-bar.is-full > span { background: var(--grad); box-shadow: 0 0 10px rgba(45, 212, 191, .6); }

/* « Votre langue » */
.tr-mine { margin-bottom: 2rem; scroll-margin-top: 90px; }
.tr-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.tr-pick label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.05rem; }
.tr-pick label .icon { color: var(--teal); }
.tr-pick select { width: auto; min-width: 280px; max-width: 100%; }
.js .tr-nojs { display: none; }
.tr-mine-empty { margin: 1rem 0 0; }
.tr-mine-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin: 1.5rem 0 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.tr-mine-head h2 { margin: 0 0 .35rem; font-size: 1.6rem; }
.tr-mine-head h2 code { vertical-align: middle; font-size: .8rem; }
.tr-mine-head p { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.tr-mine-pct { display: grid; grid-template-columns: auto 200px; align-items: center; gap: .2rem .8rem; }
.tr-mine-pct strong { grid-row: span 2; font: 800 2rem/1 var(--mono); }

.tr-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tr-file { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.tr-file h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.tr-file header p { margin: 0; }
.tr-file-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem; }
.tr-file-links { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.tr-file-links a { display: inline-flex; align-items: center; gap: .4rem; }
.tr-file-links .icon, .tr-done .icon, .tr-pending .icon { width: 15px; height: 15px; }
.tr-done { display: flex; align-items: center; gap: .4rem; color: var(--teal); font-weight: 600; }
.tr-pending { display: flex; align-items: center; gap: .5rem; margin: auto 0 0; padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .88rem; color: var(--orange); background: rgba(251, 176, 59, .08); border: 1px solid rgba(251, 176, 59, .3); }
.tr-upload { display: grid; gap: .55rem; margin-top: auto; }
.tr-drop { position: relative; display: block; margin: 0; cursor: pointer; }
.tr-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tr-drop-txt {
  display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px dashed var(--border-strong); color: var(--muted); font-size: .88rem; font-weight: 500; white-space: nowrap; text-overflow: ellipsis;
}
.tr-drop-txt .icon { flex: none; width: 15px; height: 15px; color: var(--teal); }
.tr-drop:hover .tr-drop-txt, .tr-drop input:focus-visible + .tr-drop-txt { border-color: var(--orange); color: var(--text); }
.tr-drop input:focus-visible + .tr-drop-txt { outline: 3px solid var(--orange); outline-offset: 2px; }
.tr-drop.has-file .tr-drop-txt { border-style: solid; border-color: var(--teal); color: var(--text); }
.tr-upload .btn { justify-content: center; }

/* nouvelle langue */
.tr-new { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 3rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.tr-new h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .2rem; font-size: 1.1rem; }
.tr-new h2 .icon { color: var(--teal); }
.tr-new p { margin: 0; }
.tr-new ul { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0; padding: 0; list-style: none; }
.tr-new li { display: flex; align-items: center; gap: .5rem; }

/* paliers */
.tr-group { margin-bottom: 2.8rem; }
.tr-group-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tr-group-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.4rem; }
.tr-group-head p { margin: .1rem 0 0; }
.tr-count { padding: .15rem .55rem; border-radius: 999px; font: 700 .8rem/1.2 var(--mono); color: var(--muted); background: rgba(255, 255, 255, .06); }
.tr-medal { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #1a0612; background: var(--c); box-shadow: 0 0 0 4px rgba(255, 255, 255, .05), 0 0 24px -4px var(--c); }
.tr-medal .icon { width: 24px; height: 24px; }
.tr-gold { --c: #fcd34d; }
.tr-silver { --c: #cbd5e1; }
.tr-bronze { --c: #e8a06a; }
.tr-none { --c: var(--border-strong); }
.tr-medal.tr-none { color: var(--muted); }
.tr-tier { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-weight: 700; font-size: .78rem; color: var(--c); border: 1px solid var(--c); }
.tr-tier.tr-none { --c: var(--muted); }
.tr-tier .icon { width: 12px; height: 12px; }

.tr-table { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tr-table th, .tr-table td { padding: .55rem .8rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.tr-table tbody tr:last-child > * { border-bottom: 0; }
.tr-table thead th { font: 700 .7rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; background: #0a1d20; }
.tr-table thead th:first-child { border-top-left-radius: var(--radius); }
.tr-table thead th:last-child { border-top-right-radius: var(--radius); }
.tr-table tbody th { font-weight: 600; white-space: nowrap; }
.tr-table tbody th a { color: var(--text); }
.tr-table tbody th code { margin-left: .3rem; font-size: .75rem; color: var(--faint); }
.tr-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.tr-table tr.is-mine { background: rgba(251, 176, 59, .07); box-shadow: inset 3px 0 0 var(--orange); }
.tr-table thead th:first-child { width: 26%; }
.tr-prog { width: 21%; }
.tr-table thead .tr-num { width: 13%; }
.tr-table tbody th { overflow: hidden; text-overflow: ellipsis; }
.tr-progcell { display: flex; align-items: center; gap: .7rem; }
.tr-pct { flex: none; width: 3.4rem; text-align: right; font: 700 .85rem/1 var(--mono); }
.tr-num { text-align: right !important; white-space: nowrap; font-family: var(--mono); }
.tr-num .icon { width: 16px; height: 16px; vertical-align: -3px; }
.tr-ok { color: var(--teal); }
.tr-wait { margin-left: .35rem; color: var(--orange); }
.tr-who { overflow-wrap: anywhere; }
.tr-foot .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--teal); }

/* textes manquants */
.tr-back { display: flex; width: fit-content; align-items: center; gap: .35rem; margin-bottom: 1rem; font-weight: 600; font-size: .9rem; }
.tr-flip { transform: scaleX(-1); width: 15px; height: 15px; }
.tr-diff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.tr-diff-actions .search { flex: 1 1 260px; max-width: 420px; }
.tr-strings { margin: 0; padding: 0; list-style: none; counter-reset: s; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tr-strings li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; gap: .2rem .8rem; padding: .6rem 1rem .6rem .4rem; border-bottom: 1px solid var(--border); }
.tr-strings li:last-child { border-bottom: 0; }
.tr-strings li::before { content: counter(s); grid-row: span 2; text-align: right; font: .78rem/1.7 var(--mono); color: var(--faint); }
.tr-src { grid-column: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-ctx { grid-column: 2; font: .72rem/1.3 var(--mono); color: var(--teal); }
.tr-strings li[hidden], .tr-strings.is-empty { display: none; }

@media (max-width: 960px) {
  .tr-files { grid-template-columns: 1fr; }
  .tr-mine-pct { grid-template-columns: auto 1fr; width: 100%; }
}
@media (max-width: 900px) {
  .tr-scroll { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; }
  .tr-pick select { min-width: 0; width: 100%; }
}
