/* vox — overrides on top of Pico.css 2.
 * Type stack: system-ui (no remote fonts).
 * Wordmark "vox" in heavy weight of the body type.
 */

:root {
  --vox-font:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --vox-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --vox-wordmark-weight: 800;
}

html, body { font-family: var(--vox-font); }

.vox-wordmark {
  font-family: var(--vox-font);
  font-weight: var(--vox-wordmark-weight);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}
.vox-wordmark a {
  text-decoration: none;
  color: inherit;
}

header.vox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pico-spacing, 1rem);
  border-bottom: 1px solid var(--pico-muted-border-color);
  gap: 1rem;
  flex-wrap: wrap;
}
header.vox-header nav { margin: 0; }
header.vox-header nav ul {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
header.vox-header nav ul li { margin: 0; padding: 0; }
header.vox-header button { margin: 0; }

.vox-theme-toggle {
  --pico-form-element-spacing-vertical: 0.25rem;
  --pico-form-element-spacing-horizontal: 0.5rem;
}
[data-theme="dark"] .theme-icon-light,
[data-theme="light"] .theme-icon-dark { display: none; }

.vox-mono { font-family: var(--vox-mono); }

.vox-login-main {
  display: flex;
  justify-content: center;
  padding-top: 4rem;
}
.vox-login-card {
  max-width: 24rem;
  width: 100%;
}
.vox-error { color: var(--pico-color-red-500, #c0392b); margin-top: 0.5rem; }

.vox-upload-zone {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 2px dashed var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}
.vox-upload-zone.dragover {
  border-color: var(--pico-primary, #1095c1);
  background-color: var(--pico-form-element-active-background-color, transparent);
}
.vox-pick-link {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: var(--pico-primary, #1095c1);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.vox-progress-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
  font-family: var(--vox-mono);
  font-size: 0.875rem;
}
.vox-progress-ok  { color: var(--pico-color-green-500, #2e7d32); }
.vox-progress-err { color: var(--pico-color-red-500,   #c0392b); }

.vox-library-section { margin-top: 2rem; }

.vox-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .vox-card-grid { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
}
.vox-card {
  margin: 0;
  padding: 1rem;
}
.vox-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.vox-card-meta { margin: 0.25rem 0; color: var(--pico-muted-color); }

.vox-badge {
  font-family: var(--vox-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--pico-muted-border-color);
  color: var(--pico-color);
}
.vox-status-uploaded     { background: #f1c40f33; color: #b58900; }
.vox-status-transcribing { background: #3498db33; color: #1095c1; }
.vox-status-ready        { background: #2ecc7133; color: #2e7d32; }
.vox-status-failed       { background: #e74c3c33; color: #c0392b; }

.vox-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .vox-filter-row { grid-template-columns: 2fr 1fr auto; align-items: end; }
}

.vox-log-table {
  width: 100%;
  font-size: 0.875rem;
}
.vox-log-table th, .vox-log-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
}
