/* Shared styles for the Thrifty Router report pages (index.html, golden.html). */
:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 36, 56, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(20, 184, 166, 0.3);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-teal: #14b8a6;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  --tier-lite: #60a5fa;
  --tier-standard: #2dd4bf;
  --tier-pro: #a855f7;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  padding: 2.5rem 1.5rem;
  min-height: 100vh;
}

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

/* Site nav */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover { color: var(--text-primary); }

.site-nav a[aria-current="page"] {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}

header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: var(--accent-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 40%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--border-bright); }

a.stat-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-sub {
  color: var(--accent-teal);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.section-desc a, .card a, footer a {
  color: var(--accent-teal);
  text-decoration: none;
}

.section-desc a:hover, .card a:hover, footer a:hover { text-decoration: underline; }

/* Tables */
.table-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255, 255, 255, 0.02); }

.tag-strategy {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.pill-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.pill-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.pill-lite { background: rgba(96, 165, 250, 0.15); color: var(--tier-lite); }
.pill-standard { background: rgba(45, 212, 191, 0.15); color: var(--tier-standard); }
.pill-pro { background: rgba(168, 85, 247, 0.18); color: #c084fc; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-bright);
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-teal);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: var(--accent-teal);
  text-decoration: none;
}

footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
