/* ============================================
   TrustGate Regulatory Tracker
   Page-specific styles
   ============================================ */

/* ── Tracker Hero ── */

.tracker-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg-primary);
}

.tracker-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tracker-hero .hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.tracker-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Sections ── */

.tracker-section {
  padding: 80px 0;
}

.tracker-section:nth-child(even) {
  background: var(--bg-secondary);
}

.tracker-section:nth-child(odd) {
  background: var(--bg-primary);
}

.tracker-section h2 {
  margin-bottom: 12px;
}

.tracker-section .section-sub {
  margin-bottom: 40px;
}

/* ── Supreme Court Banner ── */

.scotus-banner {
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.scotus-banner .banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.scotus-banner h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--accent);
}

.scotus-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Table ── */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.9rem;
}

.tracker-table thead {
  background: var(--bg-card-hover);
}

.tracker-table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tracker-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: top;
}

.tracker-table tbody tr {
  background: var(--bg-card);
  transition: background 0.15s;
}

.tracker-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.tracker-table tbody tr:last-child td {
  border-bottom: none;
}

.tracker-table td.state-name {
  font-weight: 600;
  white-space: nowrap;
}

.tracker-table td.law-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

.tracker-table .notes-col {
  max-width: 240px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Status Badges ── */

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-badge.enacted {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.enjoined {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-badge.pending {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ── Federal & International Grids ── */

.federal-grid,
.intl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.jurisdiction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
}

.jurisdiction-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.jurisdiction-card .card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.jurisdiction-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.jurisdiction-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── FAQ ── */

.tracker-faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── CTA ── */

.tracker-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-secondary);
}

.tracker-cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.tracker-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .tracker-hero {
    padding: 130px 0 60px;
  }

  .tracker-hero h1 {
    font-size: 2.25rem;
  }

  .federal-grid,
  .intl-grid {
    grid-template-columns: 1fr;
  }

  .scotus-banner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .tracker-hero h1 {
    font-size: 1.75rem;
  }

  .tracker-section {
    padding: 60px 0;
  }

  .jurisdiction-card {
    padding: 24px 20px;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 16px 18px;
  }
}
