/* ============================================================================
 * MelóPont — Böngészés (browse.html) · v3 dizájn (2026.09.30)
 * A lista-elrendezést (szűrősáv, találat-fejléc, gombok, üres állapot) a
 * Munkalehetőségek oldal (kereses.html) is használja.
 * Tokenek: melopont-style.css :root. Oldal-specifikus: --br-*.
 * A kék kereső-fejléc (hero, kereső, chipek) a közös css/search-hero.css-ben van —
 * ezt használja a kezdőlap is.
 * Minimum betűméret 13px (a szűrő-számláló buborék 12px). A navbar globális
 * span/div színét itt felülírjuk, ahol világos szöveg kell (hero).
 * ========================================================================== */
:root {
  --br-radius: 18px;
  --br-online: #15803D;
  --br-star: #D97706;
  --br-shadow-card: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
  --br-shadow-hover: 0 12px 30px -10px rgba(16, 24, 40, .22);
  --br-dl-head: #F7F8FA;        /* adatlap-fejléc (BROWSE-CARDS-01) */
  --br-dl-line: #EEF0F3;        /* adatlap-sorok elválasztója */
  --br-dl-line-strong: #C9CED6; /* kártya-keret egérrel fölötte */
}

.br-page [hidden] { display: none !important; }
body { background: var(--mp-bg); color: var(--mp-text-primary); min-height: 100dvh; }
.br-page { max-width: 1080px; margin: 0 auto; padding: var(--mp-page-top, 24px) 16px 40px; }

/* ── Eszköztár: kinek + szűrők ── */
.br-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 16px; padding: 12px; border-radius: var(--br-radius);
  background: var(--mp-white); border: 1px solid var(--mp-card-border); box-shadow: var(--br-shadow-card);
}
.br-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--br-soft); border: 1px solid var(--mp-card-border); }
.br-type {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px;
  border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-muted); cursor: pointer; transition: background .15s, color .15s;
}
.br-type:hover { color: var(--mp-text-primary); }
.br-type[aria-pressed="true"] { background: var(--mp-white); color: var(--mp-text-primary); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.br-type .br-count { font-weight: 600; color: inherit; }
.br-count:empty { display: none; }

.br-filter-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; margin-left: auto;
  border-radius: 999px; border: 1px solid var(--mp-card-border); background: var(--mp-white);
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary); cursor: pointer;
}
.br-toolbar .br-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--mp-blue); color: var(--mp-white); font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.br-filters { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; justify-content: flex-end; }
.br-field { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; flex: 1 1 150px; max-width: 220px; }
.br-toolbar .br-field > span { color: var(--mp-text-muted); }
.br-field select, .br-field input {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--mp-card-border); border-radius: 12px;
  font: inherit; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 500; color: var(--mp-text-primary); background: var(--br-soft);
}
.br-field select:focus, .br-field input:focus { outline: none; border-color: var(--mp-blue); background: var(--mp-white); box-shadow: 0 0 0 3px var(--mp-blue-light); }

.br-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer; white-space: nowrap; }
.br-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.br-switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--mp-disabled-border); transition: background .2s; flex-shrink: 0; }
.br-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mp-white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.br-switch input:checked + .br-switch-track { background: var(--br-online); }
.br-switch input:checked + .br-switch-track::after { transform: translateX(18px); }
.br-switch input:focus-visible + .br-switch-track { outline: 3px solid var(--mp-blue); outline-offset: 2px; }

/* ── Találatok ── */
.br-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 4px 12px; min-height: 26px; }
.br-results-title { font-size: calc(18px * var(--mp-fs, 1)); font-weight: 800; letter-spacing: -.2px; }
.br-reset { border: 0; background: none; font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-blue); cursor: pointer; padding: 6px 4px; }

.br-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }   /* STACK-01 (10.12, László: „ahol egymás mellett vannak a kártyák, legyenek egymás alatt”) */

/* BROWSE-CARDS-01 (10.10, László választása: „B — Adatlap”): komoly, adatlap-szerű kártya —
   szürke fejléc (szerepkör, név), címke–érték táblázat, két egyforma gomb a kártya alján.
   Előtag: br-dl-. A szerepkör-szín csak a monogramon és a szerepkör-feliraton jelenik meg. */
.br-person {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--mp-white); border: 1px solid var(--mp-card-border); border-radius: var(--br-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: box-shadow .2s ease, border-color .2s;
  animation: br-in .25s ease-out both;
}
.br-person:hover { box-shadow: var(--br-shadow-card); border-color: var(--br-dl-line-strong); }
@keyframes br-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.br-dl-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--br-dl-head); border-bottom: 1px solid var(--mp-card-border); }
.br-dl-avlink { flex: 0 0 44px; border-radius: 50%; }
.br-person .br-dl-av {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-white); background: var(--mp-blue);
}
.br-person .br-dl-av--company { background: var(--mp-green); }
.br-dl-av img { width: 100%; height: 100%; object-fit: cover; }
.br-dl-id { min-width: 0; }
.br-person .br-dl-cap { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mp-blue-hover); }
.br-person--company .br-dl-cap { color: var(--mp-green-dark); }
.br-page .br-person a.br-name-link { display: block; font-size: calc(18px * var(--mp-fs, 1)); font-weight: 700; line-height: 1.3; color: var(--mp-text-primary); text-decoration: none; word-break: break-word; }
.br-page .br-person a.br-name-link:hover { color: var(--mp-blue); text-decoration: underline; }
.br-dl-tab { width: 100%; border-collapse: collapse; font-size: calc(15px * var(--mp-fs, 1)); table-layout: fixed; }
.br-person .br-dl-tab th { width: min(calc(132px * var(--mp-fs, 1)), 46%); overflow-wrap: anywhere; hyphens: auto; padding: 9px 0 9px 18px; text-align: left; vertical-align: top; font-weight: 500; color: var(--mp-text-muted); }
.br-person .br-dl-tab td { padding: 9px 18px 9px 10px; vertical-align: top; font-weight: 600; color: var(--mp-text-primary); word-break: break-word; }
.br-dl-tab tr + tr th, .br-dl-tab tr + tr td { border-top: 1px solid var(--br-dl-line); }
.br-person .br-dl-tab td.br-dl-pos, .br-person .br-dl-on { color: var(--mp-green-dark); }
.br-person .br-dl-mu, .br-person .br-dl-tab td.br-dl-mu { color: var(--mp-text-muted); font-weight: 500; }
.br-person .br-dl-desc { margin: 0; padding: 12px 18px 14px; border-top: 1px solid var(--br-dl-line); font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; color: var(--mp-text-secondary); }
.br-person mark { background: var(--br-mark-bg); color: inherit; border-radius: 3px; padding: 0; }
.br-dl-ft { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--mp-card-border); }
.br-dl-ft--single { grid-template-columns: minmax(0, 1fr); }
.br-dl-ft--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* CARD-ACTIONS-01: Profil · Üzenet · Meghívom */
.br-person button.br-dl-btn { width: 100%; border: 0; border-radius: 0; font: inherit; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; cursor: pointer; }
.br-person .br-dl-btn {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary); background: var(--mp-white); text-decoration: none;
}
.br-person .br-dl-btn + .br-dl-btn { border-left: 1px solid var(--mp-card-border); }
.br-person .br-dl-btn--msg { color: var(--mp-blue-hover); }
.br-person .br-dl-btn--inv { color: var(--mp-green-dark); }
.br-person .br-dl-btn:hover { background: var(--br-dl-head); text-decoration: none; }
.br-person .br-dl-btn:focus-visible { outline: 3px solid var(--mp-blue); outline-offset: -3px; }
.br-dl-btn svg { width: 16px; height: 16px; }
@media (max-width: 400px) { .br-person .br-dl-tab th { width: 124px; padding-left: 14px; } .br-person .br-dl-tab td { padding-right: 14px; } .br-person .br-dl-desc { padding-left: 14px; padding-right: 14px; } }

.jb-card .br-fact {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px;
  background: var(--br-soft); font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-primary);
}
.br-fact svg { color: var(--mp-text-muted); }
.br-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .1s;
}
.br-btn:active { transform: scale(.98); }
.br-btn svg { width: 16px; height: 16px; }
.br-page .br-btn--primary { background: var(--mp-blue); color: var(--mp-white); }
.br-page .br-btn--primary:hover { background: var(--mp-blue-hover); color: var(--mp-white); text-decoration: none; }
.br-page .br-btn--ghost { background: var(--br-soft); color: var(--mp-text-primary); border-color: var(--mp-card-border); }
.br-page .br-btn--ghost:hover { background: var(--br-soft-hover); color: var(--mp-text-primary); text-decoration: none; }
.br-more { border-radius: 999px; padding: 10px 28px; }

.br-skel { height: 260px; border-radius: var(--br-radius); background: linear-gradient(90deg, var(--mp-card-border) 25%, var(--br-soft) 50%, var(--mp-card-border) 75%); background-size: 200% 100%; animation: br-shimmer 1.4s infinite; }
@keyframes br-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.br-empty { padding: 40px 20px; text-align: center; border-radius: var(--br-radius); background: var(--mp-white); border: 1px dashed var(--mp-card-border); }
.br-empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--mp-blue-light); color: var(--mp-blue); }
.br-empty h3 { font-size: calc(18px * var(--mp-fs, 1)); margin-bottom: 6px; }
.br-page .br-empty p { font-size: calc(15px * var(--mp-fs, 1)); color: var(--mp-text-muted); margin-bottom: 16px; }
.br-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.br-status { text-align: center; font-size: calc(15px * var(--mp-fs, 1)); padding: 16px; }
.br-page .br-status.is-error { color: var(--mp-red); }
.br-more-wrap { display: flex; justify-content: center; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { .br-person, .br-skel { animation: none; } }

/* ── Tablet / mobil ── */
@media (max-width: 860px) {
  .br-filter-toggle { display: inline-flex; }
  .br-filters { display: none; flex-basis: 100%; justify-content: flex-start; }
  .br-toolbar.is-open .br-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .br-field { max-width: none; }
  .br-switch { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .br-page { padding: 12px 10px 28px; }
  .br-toolbar { padding: 10px; gap: 10px; }
  .br-seg { width: 100%; }
  /* min-width:0 — különben a „Munkavállalók” gomb kitolta a sávot, és a telefon
     szélesebbre nyitotta az oldalt (a toast és a lebegő gombok kilógtak) */
  .br-seg { min-width: 0; max-width: 100%; }
  .br-type { flex: 1 1 0; min-width: 0; justify-content: center; padding: 6px 4px; gap: 4px; font-size: calc(14px * var(--mp-fs, 1)); }
}
@media (max-width: 400px) {
  /* Keskeny telefonon a darabszám a felirat alá kerül, hogy mindhárom gomb kiférjen */
  .br-type { flex-direction: column; gap: 0; line-height: 1.2; min-height: 44px; }
  .br-filter-toggle { width: 100%; justify-content: center; margin-left: 0; }
  .br-grid { grid-template-columns: minmax(0, 1fr); }
}

/* READY-01 (10.12): Böngészés-kártya: „Most ráér” jelzés (a sor értéke) */
.br-dl-ready {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  border-radius: var(--mp-radius-pill, 999px);
  background: var(--mp-tint-worker, #EAF2FB);
  border: 1px solid var(--mp-tint-worker-line, #B9D3F0);
  color: var(--mp-blue-hover, #004182);
  font-weight: 700;
}
.br-dl-ready svg { width: 14px; height: 14px; flex-shrink: 0; }

/* PILL-FIT-01 (10.14): nagy betűnél (130 / 150 %) telefonon az adatlap címkéje az érték FÖLÉ kerül — mérve 320–412 px-en
   a „Álláshirdetés”, „Tapasztalat” címke kilógott a 124–132 px-es oszlopból; a 3 gomb („Meghívom”) pedig nem fért el egymás mellett */
@media (max-width: 600px) {
  html[data-mp-fs="1.3"] .br-person .br-dl-tab, html[data-mp-fs="1.5"] .br-person .br-dl-tab,
  html[data-mp-fs="1.3"] .br-person .br-dl-tab tbody, html[data-mp-fs="1.5"] .br-person .br-dl-tab tbody,
  html[data-mp-fs="1.3"] .br-person .br-dl-tab tr, html[data-mp-fs="1.5"] .br-person .br-dl-tab tr { display: block; width: 100%; }
  html[data-mp-fs="1.3"] .br-person .br-dl-tab th, html[data-mp-fs="1.5"] .br-person .br-dl-tab th { display: block; width: auto; padding: 9px 14px 0; }
  html[data-mp-fs="1.3"] .br-person .br-dl-tab td, html[data-mp-fs="1.5"] .br-person .br-dl-tab td { display: block; padding: 2px 14px 9px; border-top: 0; }
  html[data-mp-fs="1.3"] .br-dl-ft--three, html[data-mp-fs="1.5"] .br-dl-ft--three { grid-template-columns: minmax(0, 1fr); }
  html[data-mp-fs="1.3"] .br-dl-ft--three .br-dl-btn + .br-dl-btn, html[data-mp-fs="1.5"] .br-dl-ft--three .br-dl-btn + .br-dl-btn { border-left: 0; border-top: 1px solid var(--mp-card-border); }
}

/* EMPTY-01 (10.15): a rejtett üres-állapot gomb tényleg rejtve (a .br-btn display-e felülírná) */
.br-empty-actions [hidden] { display: none !important; }

/* CARD-INFO-01 (10.16): a cég válaszideje az adatlapon — gyors (3 napon belüli) válasznál zöld kiemelés */
.br-page .br-dl-replyv { font-weight: 700; }
.br-page .br-dl-replyv.is-fast { color: var(--mp-st-ok-ink, #057642); }

/* REVEAL-BUDGET-01: a keret miatt kihagyott munkavállalók jelzése */
.br-limit { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--mp-st-info-line); background: var(--mp-st-info-bg); color: var(--mp-st-info-ink); font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5; }
