/* MelóPont — átláthatósági pontszám (TRANSPARENCY-01 álláshirdetés, TRANSPARENCY-02 munkavállalói profil)
   Minden token tartalékértékkel: a profile.html nem tölti a melopont-style.css-t.
   Használja: job-details.html (kártya + hero-címke), company-dashboard.html (feladási előnézet).
   Logika: /js/melopont-transparency.js */

.mp-tr-head { display: flex; align-items: center; gap: 14px; }

/* TRANSPARENCY-03 (10.15): pontszám-kör + szint + összesítés, alatta számozott skála (csík helyett) */
.mp-tr-score {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: calc(72px * var(--mp-fs, 1)); height: calc(72px * var(--mp-fs, 1)); border-radius: 50%;
  background: var(--mp-tr-soft); color: var(--mp-tr-ink); box-shadow: inset 0 0 0 3px var(--mp-tr-color);
}
.mp-tr-score strong { font-size: calc(26px * var(--mp-fs, 1)); font-weight: 800; line-height: 1; }
/* a kör mérete a betűvel nő, a két rövid sor középen belül marad — a PILL-FIT-01 lekerekítés-szűkítése itt nem kell */
.mp-tr-score.mp-pill-ml { border-radius: 50% !important; }
.mp-tr-score span { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; margin-top: 2px; }

.mp-tr-head-main { flex: 1 1 auto; min-width: 0; }
.mp-tr-level { font-size: calc(18px * var(--mp-fs, 1)); font-weight: 800; color: var(--mp-text-primary, #191919); }
.mp-tr-sum { margin: 4px 0 0; font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.45; color: var(--mp-text-muted, #5B6676); }

/* Szint-színek: semleges skála — nem „jó/rossz” ítélet, csak mennyiség. */
.mp-tr--high, .mp-tr--good { --mp-tr-color: var(--mp-blue, #0A66C2); --mp-tr-soft: var(--mp-blue-light, #E8F0FE); --mp-tr-ink: var(--mp-blue-hover, #004182); }
.mp-tr--mid { --mp-tr-color: var(--mp-orange, #E7A33E); --mp-tr-soft: var(--mp-orange-light, #FFF3E0); --mp-tr-ink: var(--mp-orange-text, #8A5300); }
.mp-tr--low { --mp-tr-color: var(--mp-text-muted, #5B6676); --mp-tr-soft: var(--mp-surface-2, #F6F8FB); --mp-tr-ink: var(--mp-text-primary, #191919); }

/* STACK-01: a skála szintjei egymás ALATT (minden szélességen), sorban: ponthatár · név · „Itt tart” */
.mp-tr-scale {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
}
.mp-tr-step {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0;
  padding: 8px 10px; border-radius: 10px;
  background: var(--mp-surface-2, #F6F8FB); border: 1px solid var(--mp-line-2, #E3E8EF);
  --mp-edge: var(--mp-tr-color);
}
.mp-tr-range { min-width: calc(56px * var(--mp-fs, 1)); }
.mp-tr-range { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 800; color: var(--mp-text-primary, #191919); font-variant-numeric: tabular-nums; }
.mp-tr-name { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.3; color: var(--mp-text-muted, #5B6676); overflow-wrap: anywhere; }
.mp-tr-step.is-here { background: var(--mp-tr-soft); border-color: var(--mp-tr-color); box-shadow: 0 0 0 1px var(--mp-tr-color); }
.mp-tr-step.is-here .mp-tr-name { color: var(--mp-tr-ink); font-weight: 700; }
.mp-tr-here {
  align-self: center; margin-top: 0; padding: 2px 8px; border-radius: var(--mp-radius-pill, 999px);
  background: var(--mp-tr-color); color: var(--mp-white, #FFFFFF);
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; line-height: 1.35;
}
.mp-tr--mid .mp-tr-here { background: var(--mp-orange-text, #8A5300); }

.mp-tr-note { margin: 12px 0 4px; font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.45; color: var(--mp-text-muted, #5B6676); }

/* Szempontok állapot szerint csoportosítva */
.mp-tr-group { margin-top: 14px; }
.mp-tr-gh {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 0; border: 0;
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary, #191919);
}
.mp-tr-gn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 0 6px;
  border-radius: var(--mp-radius-pill, 999px); background: var(--mp-surface-2, #F6F8FB); border: 1px solid var(--mp-line-2, #E3E8EF);
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary, #191919);
}
.mp-tr-group.is-ok .mp-tr-gh .mp-tr-ico { color: var(--mp-green, #057642); }
.mp-tr-group.is-partial .mp-tr-gh .mp-tr-ico { color: var(--mp-orange-text, #8A5300); }
.mp-tr-group.is-missing .mp-tr-gh .mp-tr-ico { color: var(--mp-text-muted, #5B6676); }
.mp-tr-ask { margin: 0 0 4px; font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.45; color: var(--mp-text-muted, #5B6676); }

.mp-tr-list { list-style: none; margin: 4px 0 0; padding: 0; }
.mp-tr-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--mp-divider, #EBEBEB); }
.mp-tr-item:first-child { border-top: 0; }
.mp-tr-ico { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.mp-tr-ico svg { width: 20px; height: 20px; display: block; }
.mp-tr-item.is-ok .mp-tr-ico { color: var(--mp-green, #057642); }
.mp-tr-item.is-partial .mp-tr-ico { color: var(--mp-orange-text, #8A5300); }
.mp-tr-item.is-missing .mp-tr-ico { color: var(--mp-text-muted, #5B6676); }
.mp-tr-body { min-width: 0; flex: 1 1 auto; }
.mp-tr-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.mp-tr-label { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary, #191919); }
.mp-tr-pts { display: inline-flex; align-items: baseline; gap: 6px; font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted, #5B6676); white-space: nowrap; }
.mp-tr-pts b { font-weight: 700; color: var(--mp-text-primary, #191919); }
.mp-tr-item.is-ok .mp-tr-pts b { color: var(--mp-green, #057642); }
.mp-tr-item.is-partial .mp-tr-pts b { color: var(--mp-orange-text, #8A5300); }
.mp-tr-text { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.45; color: var(--mp-text-primary, #191919); overflow-wrap: anywhere; }
.mp-tr-item.is-missing .mp-tr-text { color: var(--mp-text-muted, #5B6676); }
.mp-tr-tip {
  margin-top: 6px; padding: 6px 10px; font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.45;
  border-radius: 8px; background: var(--mp-blue-light, #E8F0FE); color: var(--mp-text-primary, #191919);
}

.mp-tr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Hero-címke az álláshirdetés tetején: rákattintva a kártyához ugrik */
.mp-tr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--mp-radius-pill, 999px);
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; text-decoration: none;
  background: var(--mp-blue-light, #E8F0FE); color: var(--mp-blue, #0A66C2);
}
.mp-tr-chip:hover { text-decoration: underline; }
.mp-tr-chip.mp-tr--mid { background: var(--mp-orange-light, #FFF3E0); color: var(--mp-orange-text, #8A5300); }
.mp-tr-chip.mp-tr--low { background: var(--mp-bg, #F4F5F7); color: var(--mp-text-primary, #191919); }
.mp-tr-chip svg { width: 14px; height: 14px; }

/* Feladási űrlap élő előnézete */
.mp-tr-preview {
  margin: 4px 0 16px; padding: 14px; border: 1px solid var(--mp-card-border, #E5E7EB);
  border-radius: var(--mp-card-radius, 12px); background: var(--mp-bg, #F4F5F7);
}
.mp-tr-preview-title { margin: 0 0 10px; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary, #191919); }
.mp-tr-preview .mp-tr-list { margin-top: 4px; }
.mp-tr-insert {
  margin-top: 6px; font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600;
  padding: 4px 10px; border-radius: var(--mp-radius-pill, 999px); cursor: pointer;
  border: 1px solid var(--mp-blue, #0A66C2); background: var(--mp-white, #FFFFFF); color: var(--mp-blue, #0A66C2);
}
.mp-tr-insert:hover { background: var(--mp-blue-light, #E8F0FE); }

.mp-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .mp-tr-score strong { font-size: calc(22px * var(--mp-fs, 1)); }
  .mp-tr-score { width: calc(62px * var(--mp-fs, 1)); height: calc(62px * var(--mp-fs, 1)); }
}

/* Saját profil: link a nyilvános nézetre */
.mp-tr-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--mp-radius-pill, 999px);
  border: 1px solid var(--mp-blue, #0A66C2); color: var(--mp-blue, #0A66C2);
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; text-decoration: none; background: var(--mp-white, #FFFFFF);
}
.mp-tr-link:hover { background: var(--mp-blue-light, #E8F0FE); }
.mp-tr-link[hidden] { display: none; }

/* Nyilvános profil: munkavállalási adatok */
.mp-pub-facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.mp-pub-facts li { display: grid; gap: 2px; }
.mp-pub-facts dt, .mp-pub-facts .mp-pub-fact-label { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-muted, #5B6676); text-transform: none; }
.mp-pub-facts .mp-pub-fact-value { font-size: calc(15px * var(--mp-fs, 1)); color: var(--mp-text-primary, #191919); overflow-wrap: anywhere; }

/* Saját profil: „Profilom kiegészítése” — egyből a hiányzó mezőhöz visz */
.mp-tr-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--mp-radius-pill, 999px); border: 1px solid var(--mp-blue, #0A66C2);
  background: var(--mp-blue, #0A66C2); color: var(--mp-white, #FFFFFF);
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer;
}
.mp-tr-btn:hover { background: var(--mp-blue-hover, #004182); border-color: var(--mp-blue-hover, #004182); }
.mp-tr-btn:focus-visible, .mp-tr-link:focus-visible, .mp-tr-insert:focus-visible { outline: 2px solid var(--mp-blue-hover, #004182); outline-offset: 2px; }
.mp-tr-btn svg, .mp-tr-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.mp-tr-actions .mp-tr-btn, .mp-tr-actions .mp-tr-link { flex: 1 1 200px; justify-content: center; }
.mp-tr-btn[disabled], .mp-tr-insert[disabled] {
  background: var(--mp-disabled-bg, #E8E7E4); border-color: var(--mp-disabled-border, #D6D5D2);
  color: var(--mp-disabled-text, #5E5E5E); cursor: not-allowed;
}
