/* Styles for mod-files.js: File Hash Lookup, QR Code Decoder, Certificate Decoder (fz-) */

/* ---------- drop zone ---------- */
.fz-pad { padding: 14px; }
.fz-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 150px; padding: 26px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: 14px; background: rgba(0,0,0,.22);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.fz-drop:hover, .fz-drop:focus-within, .fz-drop.over { border-color: rgba(198,255,61,.65); background: rgba(198,255,61,.045); }
.fz-drop:focus-within { box-shadow: 0 0 0 3px rgba(198,255,61,.12); }
.fz-drop.over { box-shadow: 0 0 0 3px rgba(198,255,61,.16), inset 0 0 40px -12px rgba(198,255,61,.35); }
.fz-ico { font: 26px/1 var(--mono); color: var(--lime); margin-bottom: 4px; }
.fz-drop b { font-size: 16px; font-weight: 600; }
.fz-drop small { font: 12px/1.5 var(--mono); color: var(--muted); max-width: 46ch; }
.fz-ta.over { border-color: rgba(198,255,61,.65); box-shadow: 0 0 0 3px rgba(198,255,61,.16); }
.fz-file { position: relative; cursor: pointer; }
.fz-file:focus-within { border-color: rgba(51,225,255,.6); }

/* ---------- results ---------- */
.fz-out .t td { overflow-wrap: anywhere; vertical-align: top; }
.fz-out .t td:first-child { color: var(--muted); white-space: nowrap; }
.fz-cp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.fz-cp .code-inline { flex: 1 1 220px; min-width: 0; }
.fz-cp .copybtn { flex: none; }
.fz-flag { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.fz-flag b { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 4px; }
.fz-flag.fail { border-color: rgba(255,93,115,.5); background: rgba(255,93,115,.07); }
.fz-flag.fail b { color: var(--red); }
.fz-flag.warn { border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.06); }
.fz-flag.warn b { color: var(--amber); }
.fz-flag.info { background: rgba(51,225,255,.035); }
.fz-flag.info b { color: var(--cyan); }
.fz-tag { margin-left: 8px; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255,181,71,.45); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.fz-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fz-btn { padding: 10px 14px; font-size: 12px; text-decoration: none; }
.fz-dim { font: 12px/1.6 var(--mono); color: var(--muted); }
.fz-name { overflow-wrap: anywhere; min-width: 0; }
.fz-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* QR preview */
.fz-prev { display: grid; justify-items: center; gap: 8px; padding: 16px; }
.fz-prev img { display: block; max-width: 100%; max-height: 240px; height: auto; border-radius: 10px; background: #fff; }
.fz-prev small { font: 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; text-align: center; }

/* Certificate names */
.fz-sans { display: flex; flex-wrap: wrap; gap: 6px; }
.fz-san { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 100%; padding: 3px 6px 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.015); }
.fz-san small { font: 10.5px var(--mono); letter-spacing: .1em; color: var(--muted); }
.fz-san .code-inline { min-width: 0; }
.fz-more { margin-top: 8px; }
.fz-more .fz-sans { padding: 10px 12px; }

@media (max-width: 640px) {
  .fz-drop { min-height: 120px; padding: 20px 12px; }
  .fz-out .t td:first-child { white-space: normal; }
  .fz-cp .code-inline { flex-basis: 100%; }
  .fz-acts .fz-btn { flex: 1 1 100%; text-align: center; }
}

/* Key/value tables: the first cell is already the label, so skip the column captions on phones. */
@media (max-width: 640px) {
  .fz-out table.t[data-cards] td::before { content: none; }
  .fz-out table.t[data-cards] td:first-child { padding-bottom: 0; font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .fz-out table.t[data-cards] td + td { display: block; }
}
