/* ============================================================================
 * MelóPont — hibabejelentő oldal (hibabejelentes.html + js/bug-report.js)
 * Tokenek: melopont-style.css :root. A melopont-navbar.js minden span/div/strong
 * elemet globálisan sötétre színez, ezért itt a színes háttéren lévő szövegek
 * színét kifejezetten megadjuk.
 * ========================================================================== */

.mp-br-page {
  max-width: 720px; margin: 0 auto; padding: 16px 16px 48px;
  box-sizing: border-box;
}
.mp-br-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px;
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; text-decoration: none;
}
.mp-br-back, .mp-br-back:hover { color: var(--mp-blue); }
.mp-br-back svg { width: 18px; height: 18px; }

/* ── Kártya ── */
.mp-br-card {
  background: var(--mp-white); border: 1px solid var(--mp-card-border); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  padding: 20px; margin-bottom: 16px;
}
.mp-br-form { display: flex; flex-direction: column; gap: 20px; }
.mp-br-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.mp-br-label { display: block; font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; margin-bottom: 8px; padding: 0; color: var(--mp-text-primary); }
.mp-br-req { color: var(--mp-red); }
.mp-br-hint { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.5; margin: -2px 0 10px; color: var(--mp-text-muted); }
.mp-br-muted { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.5; margin: 0; color: var(--mp-text-muted); }

/* ── Kategória-chipek (natív rádiógombok, vizuálisan chip) ── */
.mp-br-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }   /* STACK-01 (10.12, László: „ahol egymás mellett vannak a kártyák, legyenek egymás alatt”) */
.mp-br-chip { position: relative; display: block; cursor: pointer; }
.mp-br-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mp-br-chip > span {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--mp-card-border); border-radius: 12px; background: var(--mp-white);
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; line-height: 1.25; color: var(--mp-text-primary);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.mp-br-chip > span svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--mp-blue); }
.mp-br-chip:hover > span { border-color: var(--mp-blue); }
.mp-br-chip input:focus-visible + span { outline: 3px solid var(--mp-blue-light); outline-offset: 2px; }
.mp-br-chip input:checked + span {
  background: var(--mp-blue); border-color: var(--mp-blue);
  box-shadow: 0 4px 12px rgba(10, 102, 194, .22);
}
.mp-br-chip input:checked + span, .mp-br-chip input:checked + span svg { color: var(--mp-white); }
.mp-br-chip input[aria-invalid="true"] + span { border-color: var(--mp-red); }

/* ── Gyors segítség a kiválasztott témához (BR-CAT-01) ── */
.mp-br-help {
  margin-top: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--mp-blue-light); color: var(--mp-text-primary);
  font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.5;
}
.mp-br-help-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; }
.mp-br-help-title svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--mp-blue); }
.mp-br-help ul { margin: 0 0 8px; padding-left: 20px; }
.mp-br-help li { margin-bottom: 4px; }
.mp-br-help-link {
  display: inline-block; padding: 11px 0; line-height: 1.4;
  font-weight: 700; color: var(--mp-blue); text-decoration: none;
}
.mp-br-help-link:hover { color: var(--mp-blue-hover); text-decoration: underline; }
.mp-br-help-link svg { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }
.mp-br-help-foot { margin: 4px 0 0; font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); }

/* ── Leírás ── */
.mp-br-field textarea {
  width: 100%; box-sizing: border-box; min-height: 140px; resize: vertical;
  padding: 12px 14px; border: 1.5px solid var(--mp-card-border); border-radius: 12px;
  font: inherit; font-size: calc(16px * var(--mp-fs, 1)); line-height: 1.5; color: var(--mp-text-primary); background: var(--mp-white);
}
.mp-br-field textarea:focus { outline: none; border-color: var(--mp-blue); box-shadow: 0 0 0 3px var(--mp-blue-light); }
.mp-br-field textarea[aria-invalid="true"] { border-color: var(--mp-red); }
.mp-br-counter { display: flex; justify-content: flex-end; margin-top: 6px; }
.mp-br-counter span { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-muted); }
.mp-br-counter span.is-short { color: var(--mp-text-primary); }
.mp-br-error { margin: 8px 0 0; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-red); }

.mp-br-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.mp-br-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--mp-blue); }
.mp-br-check span { font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.45; color: var(--mp-text-primary); }

/* ── „Mit küldünk el?” ── */
.mp-br-context { border: 1px solid var(--mp-card-border); border-radius: 12px; background: var(--mp-bg); padding: 0 14px; }
.mp-br-context summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer;
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-blue);
}
.mp-br-context summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.mp-br-context dl { margin: 0 0 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.mp-br-context dt { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-top: 8px; color: var(--mp-text-muted); }
.mp-br-context dd { margin: 0; font-size: calc(15px * var(--mp-fs, 1)); color: var(--mp-text-primary); overflow-wrap: anywhere; }
.mp-br-context dd.mp-br-ua { font-size: calc(14px * var(--mp-fs, 1)); }
.mp-br-context .mp-br-muted { padding-bottom: 12px; }

.mp-br-alert {
  margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mp-red-light);
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 600; line-height: 1.45; color: var(--mp-red);
}

/* ── Gombok ── */
.mp-br-submit, .mp-br-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700;
  transition: background-color .15s ease, transform .1s ease;
}
.mp-br-submit svg, .mp-br-secondary svg { width: 18px; height: 18px; }
.mp-br-submit { width: 100%; border: 0; background: var(--mp-blue); box-shadow: 0 4px 14px rgba(10, 102, 194, .25); }
.mp-br-submit, .mp-br-submit span, .mp-br-submit svg { color: var(--mp-white); }
.mp-br-submit:hover { background: var(--mp-blue-hover); }
.mp-br-submit:active, .mp-br-secondary:active { transform: translateY(1px); }
.mp-br-submit:disabled { background: var(--mp-disabled-bg); box-shadow: none; cursor: not-allowed; }
.mp-br-submit:disabled, .mp-br-submit:disabled span, .mp-br-submit:disabled svg { color: var(--mp-disabled-text); }
.mp-br-secondary { border: 1.5px solid var(--mp-card-border); background: var(--mp-white); }
.mp-br-secondary, .mp-br-secondary span, .mp-br-secondary svg { color: var(--mp-text-primary); }
.mp-br-secondary:hover { background: var(--mp-bg); }

/* ── Siker ── */
.mp-br-success { text-align: center; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mp-br-success-icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--mp-green-light);
}
.mp-br-success-icon svg { width: 32px; height: 32px; color: var(--mp-green); }
.mp-br-success h2 { font-size: calc(22px * var(--mp-fs, 1)); font-weight: 800; margin: 4px 0 0; color: var(--mp-text-primary); }
.mp-br-success p { font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.55; margin: 0; max-width: 460px; color: var(--mp-text-primary); }
.mp-br-success .mp-br-muted { color: var(--mp-text-muted); }
.mp-br-ref {
  display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--mp-blue-light);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: calc(16px * var(--mp-fs, 1)); letter-spacing: 1px;
}
.mp-br-success strong.mp-br-ref { color: var(--mp-blue-hover); }

/* ── Korábbi bejelentések ── */
.mp-br-h2 { font-size: calc(18px * var(--mp-fs, 1)); font-weight: 700; margin: 0 0 12px; color: var(--mp-text-primary); }
.mp-br-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mp-br-item { border: 1px solid var(--mp-card-border); border-radius: 12px; padding: 12px 14px; }
.mp-br-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-br-item .mp-br-item-cat { font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary); }
.mp-br-item .mp-br-item-meta { font-size: calc(14px * var(--mp-fs, 1)); margin-top: 2px; color: var(--mp-text-muted); }
.mp-br-item .mp-br-item-note { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.5; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--mp-bg); color: var(--mp-text-primary); }
.mp-br-item .mp-br-item-note strong { color: var(--mp-text-primary); }
.mp-br-status { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; }
.mp-br-item .mp-br-status--new { background: var(--mp-blue-light); color: var(--mp-blue-hover); }
.mp-br-item .mp-br-status--progress { background: var(--mp-orange-light); color: #8A4B00; }
.mp-br-item .mp-br-status--done { background: var(--mp-green-light); color: var(--mp-green); }
.mp-br-item .mp-br-status--closed { background: var(--mp-bg); color: var(--mp-text-muted); }

@media (max-width: 480px) {
  .mp-br-card { padding: 16px; border-radius: 16px; }
}
