/* ── Portal / Case Status Tracker styles ── */

/* Nav */
.portal-nav {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 24px;
}

.portal-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.portal-logo span { color: var(--accent); }

.portal-nav-link {
  font-size: 14px;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.portal-nav-link:hover { color: #ffffff; }

/* Main layout */
.portal-main {
  min-height: calc(100vh - 64px);
  background: var(--bg-alt);
  padding: 48px 24px;
}

.portal-container {
  max-width: 900px;
  margin: 0 auto;
}

.portal-narrow { max-width: 500px; }

.portal-centered { text-align: center; }

/* Empty / error state */
.portal-error-icon { font-size: 56px; margin-bottom: 16px; }
.portal-heading {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.portal-subheading {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ── Case header ──────────────────────────────────────────────────────────── */
.case-header {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.case-number-heading {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.case-vs {
  font-size: 16px;
  color: #888;
  margin-top: 4px;
}

.case-header .eyebrow { margin-bottom: 8px; }

.case-header-right {
  text-align: right;
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  padding: 8px 20px;
  margin-bottom: 12px;
}

.status-badge--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111111;
}

.claim-amount {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

/* ── Timeline ─────────────────────────────────────────────────────────────── */
.timeline-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.timeline-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin-bottom: 28px;
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  gap: 0;
  padding-bottom: 8px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 88px;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.timeline-step--active .timeline-dot {
  border-color: var(--accent);
  background: #fff8ec;
}

.timeline-step--current .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232,160,32,0.2);
}

.timeline-dot-icon { font-size: 16px; }
.timeline-check { font-size: 14px; color: var(--accent); font-weight: 700; }

.timeline-step-label {
  font-size: 11px;
  text-align: center;
  color: var(--fg-subtle);
  line-height: 1.3;
}

.timeline-step--active .timeline-step-label { color: var(--ink); font-weight: 600; }
.timeline-step--current .timeline-step-label { color: var(--accent); font-weight: 700; }

.timeline-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 17px; /* vertically center with dots */
  flex-shrink: 0;
  min-width: 12px;
}

.timeline-connector--active { background: var(--accent); }

/* ── Events log ───────────────────────────────────────────────────────────── */
.events-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.events-heading {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin-bottom: 24px;
}

.events-empty {
  font-size: 15px;
  color: var(--fg-muted);
}

.events-list { display: flex; flex-direction: column; gap: 0; }

.event-item {
  display: flex;
  gap: 16px;
  padding: 0 0 24px;
}

.event-item:last-child { padding-bottom: 0; }
.event-item:last-child .event-line { display: none; }

.event-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
}

.event-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff8ec;
  border: 1px solid #f5d78e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.event-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: 6px;
}

.event-body { flex: 1; padding-top: 4px; }

.event-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.event-notes {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 6px;
}

.event-meta {
  font-size: 12px;
  color: var(--fg-subtle);
}

/* ── Portal footer CTA ───────────────────────────────────────────────────── */
.portal-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--fg-muted);
}

.portal-footer-cta a[href^="mailto"] { color: var(--accent); }

/* ── Track form ───────────────────────────────────────────────────────────── */
.track-icon { font-size: 56px; margin-bottom: 20px; }

.track-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
  text-align: left;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--accent); }

.form-divider {
  text-align: center;
  color: var(--fg-subtle);
  font-size: 13px;
  margin: 8px 0;
}

.form-error {
  color: var(--red);
  font-size: 14px;
  margin-bottom: 12px;
}

.btn-full { width: 100%; text-align: center; }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
  background: #ffffff;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--ink); }

/* Results list */
.results-heading {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  margin: 32px 0 12px;
}

.result-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.result-card:hover { border-color: var(--accent); }

.result-case-number {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-right: 12px;
}

.result-meta { font-size: 13px; color: var(--fg-muted); flex: 1; }

.result-arrow { color: var(--accent); font-weight: 700; }

/* Responsive */
@media (max-width: 600px) {
  .case-header { flex-direction: column; }
  .case-header-right { text-align: left; }
  .portal-footer-cta { flex-direction: column; align-items: flex-start; }
}
