/* ==================================================================
   update_style.css
   Layout only, for the Niji-Dle development-updates board.

   This file assumes style.css is loaded first. It does not define
   any new colors, fonts, or theme tokens of its own — anywhere a
   color is structurally unavoidable (a border, a status dot, muted
   text) it references style.css's existing variables directly
   (--bg, --bg-raised, --text-dim, --border, --hit, --partial,
   --another_partial, --unknown, --miss, --focus, --font-display,
   --font-mono). Everything else here is spacing, sizing, and structure.
   ================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.wrap {
  width: min(1400px, calc(100% - 36px));
  margin: 0 auto;
}

.updates-body header {
  padding: 48px 0 28px;
}

.updates-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 42px;
}

.updates-topbar .topbar-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
  color: var(--text);
}

.back {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.back:hover {
  color: var(--text);
}

.hero {
  max-width: 820px;
}

.updates-body h1 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 700px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 34px;
}

.stat {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 2px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 14px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

button.filter {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-dim);
  border-radius: 9px;
  padding: 9px 13px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

button.filter:hover,
button.filter.active {
  color: var(--text);
  border-color: var(--focus);
}

.updated {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(245px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.board-loading {
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 8px 2px;
  margin: 0;
}

.column {
  min-width: 245px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  min-height: 390px;
}

.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.92rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.planned .dot {
  background: var(--focus);
}
.progress .dot {
  background: var(--partial);
}
.testing .dot {
  background: var(--unknown);
}
.done .dot {
  background: var(--hit);
}
.resolved .dot {
  background: var(--hit);
}

.count {
  min-width: 24px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

button.show-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px dashed var(--border);
  background: none;
  color: var(--text-dim);
  border-radius: 9px;
  padding: 8px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

button.show-more:hover {
  color: var(--text);
  border-color: var(--focus);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--focus);
}

.card.hidden {
  display: none;
}

.card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.25;
}

.card p {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tag {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.68rem;
}

.tag.priority {
  border-color: var(--another_partial);
  color: var(--another_partial);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.updates-body section {
  margin: 52px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.timeline {
  border-left: 1px solid var(--border);
  margin-left: 7px;
  padding-left: 24px;
}

.event {
  position: relative;
  padding: 0 0 25px;
}

.event::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--focus);
  left: -29px;
  top: 6px;
}

.event-date {
  color: var(--focus);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.event h3 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.event p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.link-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--focus);
}

.link-card .link-kicker {
  color: var(--focus);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-card h3 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.link-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.updates-body footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 45px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .board {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1400px);
  }
  .updates-body header {
    padding-top: 28px;
  }
  .updates-topbar {
    margin-bottom: 30px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
  .updates-body h1 {
    font-size: 2.65rem;
  }
}

/* ==================================================================
   status.css
   Layout only, for the ticket status lookup page. Assumes style.css
   is loaded first and reuses its tokens (--bg-raised, --border,
   --text-dim, --focus, --hit, --partial, --another_partial, --miss,
   --font-display, --font-mono) rather than defining new ones.
   ================================================================== */

.status-stage {
  max-width: 520px;
}

.status-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  margin-top: 12px;
}

.status-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.status-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

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

.status-form {
  display: flex;
  gap: 8px;
}

#ticket-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text);
  outline: none;
}

#ticket-input:focus {
  border-color: var(--focus);
}

.status-check-btn {
  margin: 0;
  white-space: nowrap;
}

.status-result {
  margin-top: 20px;
}

.status-result-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: var(--bg);
}

.status-result-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 8px;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.status-pill--received {
  background: var(--unknown);
  color: #fff;
}
.status-pill--planned {
  background: var(--focus);
  color: #fff;
}
.status-pill--in_progress {
  background: var(--partial);
  color: #1a1300;
}
.status-pill--testing {
  background: var(--another_partial);
  color: #1a1300;
}
.status-pill--done {
  background: var(--hit);
  color: #fff;
}
.status-pill--resolved {
  background: var(--hit);
  color: #fff;
}
.status-pill--wontfix {
  background: var(--miss);
  color: var(--text);
}

.status-response {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.status-response-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.status-updated {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
}

.status-error,
.status-empty {
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 8px 2px;
}
