/* App-specific styles for the Valheim seed extractor.
   Shared tokens, fonts, components and flair load first, copied unedited
   from ketchup-site-design (see that repo's DESIGN.md for the full spec).
   This file only adds what's specific to this tool: page shell, dropzone,
   seed readout, and the file-location list. */

[hidden] {
  display: none !important;
}

/* ══ page shell: a full-height column so header/footer stay pinned to the
   viewport edges as bars, with the narrow content column between them ══ */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-bar {
  width: 100%;
  max-width: calc(760px + var(--host-rail-w, 0px));
  margin: 0 auto;
  padding-inline: var(--page-padding);
}

main.app-bar {
  padding-block: var(--sp-8) clamp(40px, 6vw, 64px);
  flex: 1;
}

footer.app-bar {
  margin-top: auto;
}

.header-dot {
  color: var(--brand);
}

.lede {
  margin-top: var(--sp-3);
}

/* A panel here holds a whole content section (heading, dropzone, readout)
   rather than the compact header/body pair .panel-body is sized for, so it
   sets its own padding instead of nesting one. */
.panel {
  padding: var(--sp-6);
}

.panel .h2 {
  margin: 0 0 var(--sp-3);
}

.panel p {
  color: var(--text-muted);
  margin: 0 0 var(--sp-4);
}

.panel p:last-child {
  margin-bottom: 0;
}

code {
  background: var(--bg-inset);
  border-radius: var(--radius-xs);
  padding: 0.1rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.dropzone {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.dropzone.is-over {
  border-color: var(--info);
  background: var(--info-bg);
}

.panel .dropzone-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.dropzone .hint {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dropzone-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.panel .status-error {
  margin: var(--sp-4) 0 0;
  color: var(--danger);
}

/* ══ seed readout: a recessed well inside the upload panel, not a second
   panel, so the Surface Rule's no-stacked-panels holds ══ */
.readout {
  margin-top: var(--sp-5);
  background: var(--bg-inset);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}

.panel .readout-seed {
  margin: var(--sp-1) 0 var(--sp-2);
  font-family: var(--font-mono);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
}

.readout .status-pill.is-ok {
  color: var(--success);
}

.readout .status-pill.is-mismatch {
  color: var(--warning);
}

.readout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.readout-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
}

.readout-facts dt {
  color: var(--text-muted);
}

.readout-facts dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.readout-facts dd span {
  display: block;
}

@media (max-width: 560px) {
  .readout-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-1);
  }

  .readout-facts dd {
    margin-bottom: var(--sp-3);
  }
}

.where-list {
  margin: 0;
}

.where-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-top: var(--sp-5);
}

.where-list dd {
  margin: var(--sp-1) 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}
