/* proctorproblems.com — macOS Tahoe / liquid-glass light theme */
:root {
  --bg: #FAFAFB;
  --bg-noise: #F4F4F6;
  --panel: rgba(255,255,255,0.78);
  --panel-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0A84FF;
  --accent-soft: rgba(10,132,255,0.10);
  --danger: #FF3B30;
  --warn: #FF9F0A;
  --ok: #34C759;
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 1px 2px rgba(0,0,0,0.04), 0 18px 48px rgba(0,0,0,0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Top nav */
.pp-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(250,250,251,0.72);
  border-bottom: 1px solid var(--border);
}
.pp-nav .container { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.pp-brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.pp-brand .dot { color: var(--danger); }
.pp-nav a.pp-link { color: var(--text); font-weight: 500; padding: 8px 14px; border-radius: var(--radius-pill); }
.pp-nav a.pp-link:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.pp-nav .spacer { flex: 1; }

/* Buttons & pills */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; line-height: 1;
  border: 1px solid var(--border); background: var(--panel-solid); color: var(--text);
  cursor: pointer; transition: transform .04s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-sm); text-decoration: none;
}
.btn:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: #006fe6; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }

/* Big red CTA — solid red, bold thick gold outline, white text. Loud by design. */
a.btn-report-big, button.btn-report-big, .btn-report-big {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FF3B30;
  color: #ffffff;
  border: 3px solid #FFD60A;
  padding: 11px 30px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.30);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.08),
    0 10px 32px rgba(255,59,48,0.45),
    0 3px 0 rgba(184,38,29,0.55),
    inset 0 -2px 0 rgba(0,0,0,0.10);
  text-decoration: none;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
a.btn-report-big:hover, button.btn-report-big:hover, .btn-report-big:hover {
  background: #e1271d;
  border-color: #FFC400;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.08),
    0 14px 40px rgba(255,59,48,0.60),
    0 3px 0 rgba(184,38,29,0.55),
    inset 0 -2px 0 rgba(0,0,0,0.10);
  text-decoration: none;
  transform: translateY(-1px);
  color: #ffffff;
}
.btn-report-big:active { transform: translateY(1px); }
.btn-report-big:focus-visible { outline: 3px solid #0A84FF; outline-offset: 4px; }
@media (max-width: 600px) {
  .btn-report-big { font-size: 16px; padding: 12px 30px; border-width: 3px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; line-height: 1;
}
.pill.muted { background: rgba(0,0,0,0.05); color: var(--muted); }
.pill.ok { background: rgba(52,199,89,0.12); color: #1f8a3d; }
.pill.warn { background: rgba(255,159,10,0.14); color: #b25e00; }
.pill.danger { background: rgba(255,59,48,0.10); color: #b8261d; }
.pill.verified::before { content: "✓"; }

/* Cards */
.card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
}
.card-glass {
  background: var(--panel);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* Forms */
.pp-input, .pp-select, .pp-textarea, .pp-file {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pp-textarea { resize: vertical; min-height: 120px; }
.pp-input:focus, .pp-select:focus, .pp-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
label.pp-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.errorlist { margin: 6px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 13px; }

/* Hero */
.hero {
  padding: 56px 0 24px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.05;
}
.hero p.tagline { color: var(--muted); font-size: 18px; margin: 0 auto 24px; max-width: 640px; }

.stat-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

/* Report card */
.report-card { display: flex; flex-direction: column; gap: 10px; }
.report-card .meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.report-card h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.report-card .desc { color: #4a4a4f; font-size: 14px; line-height: 1.55; }
.report-card .footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* Map page */
.map-wrap { height: 70vh; min-height: 500px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
#map { width: 100%; height: 100%; }

/* Filters bar */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); margin-bottom: 18px;
}
.filters .pp-select, .filters .pp-input { width: auto; min-width: 160px; }

/* Footer */
.pp-footer { color: var(--muted); padding: 40px 0 60px; font-size: 13px; text-align: center; }
.pp-footer a { color: var(--muted); }
.pp-footer a:hover { color: var(--text); }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; font-weight: 500; }
.messages li.error { background: rgba(255,59,48,0.10); color: #b8261d; }

/* Tables */
.pp-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pp-table th, .pp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pp-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
