/* Fab Guys — dating layer prototype
   Design tokens taken from the live site: navy #182034, blue #2258a8, bg #f7f8fb, Inter */

:root {
  --navy:      #182034;
  --ink:       #1b2436;
  --muted:     #5b6880;
  --faint:     #8b96a9;
  --line:      #e2e7f0;
  --line-soft: #eef1f7;
  --bg:        #f7f8fb;
  --surface:   #ffffff;
  --surface-2: #f2f5fa;
  --blue:      #2258a8;
  --blue-dark: #1a4685;
  --blue-soft: #e8f0fb;
  --green:     #17a673;
  --amber:     #c47f16;
  --red:       #c8342e;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(24,32,52,.06), 0 4px 16px rgba(24,32,52,.06);
  --shadow-lg: 0 8px 40px rgba(24,32,52,.14);
  --wrap:      1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #e8ecf4; --ink: #e8ecf4; --muted: #97a3b8; --faint: #6d7a91;
    --line: #26303f; --line-soft: #1f2836; --bg: #0d121b; --surface: #141b26;
    --surface-2: #1a2230; --blue: #5b9bf0; --blue-dark: #4a8ae0; --blue-soft: #172740;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 650; }
h3 { font-size: 17px; font-weight: 620; }
p  { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny  { font-size: 12px; }
.center { text-align: center; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { font-weight: 750; font-size: 18px; color: var(--navy); letter-spacing: -.03em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--blue); }
.nav { display: flex; gap: 20px; font-size: 14px; font-weight: 500; margin-left: 4px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--navy); text-decoration: none; }
.nav a[aria-current] { font-weight: 600; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 820px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--blue); color: #fff;
  cursor: pointer; white-space: nowrap; transition: background .14s, border-color .14s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); color: var(--navy); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- role switcher (prototype only) ---------- */
.roleswitch {
  display: flex; gap: 2px; padding: 3px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px;
}
.roleswitch button {
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  padding: 4px 11px; border: 0; border-radius: 16px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.roleswitch button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow); }
.protobar {
  background: var(--navy); color: #cfd8e8; font-size: 12px;
  padding: 7px 0; text-align: center; letter-spacing: .01em;
}
.protobar b { color: #fff; }
.protobar code { background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }

/* ---------- cards / surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.section { padding: 40px 0; }
.section-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-hd h2 { margin: 0; }

/* ---------- the grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.pcard {
  position: relative; display: block;
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer; isolation: isolate;
}
.pcard:hover { text-decoration: none; }
.pcard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard.locked .pcard-photo { filter: blur(16px) saturate(.75); transform: scale(1.15); }
.pcard-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,24,.88) 0%, rgba(10,14,24,.45) 32%, rgba(10,14,24,0) 62%);
}
.pcard-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 9px; color: #fff; }
.pcard-name { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 4px; }
.pcard-name .vf { flex: none; }
.pcard-sub { font-size: 11.5px; opacity: .82; margin-top: 1px; }
.pcard-tags { position: absolute; top: 7px; left: 7px; display: flex; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 34px); }
.chip-mini {
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(12,16,26,.62); color: #fff; backdrop-filter: blur(4px);
}
.dot {
  position: absolute; top: 8px; right: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.dot.away { background: #b9c2d1; }
.pcard-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px;
  color: #fff;
}
.pcard-lock svg { opacity: .9; }
.pcard-lock span { font-size: 11px; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pcard-hover {
  position: absolute; left: 7px; right: 7px; bottom: 7px;
  opacity: 0; transform: translateY(5px); transition: opacity .14s, transform .14s;
}
@media (hover: hover) {
  .pcard:hover .pcard-hover { opacity: 1; transform: none; }
  .pcard:hover .pcard-meta  { opacity: 0; }
}
.pcard-hover .btn { width: 100%; padding: 7px; font-size: 12.5px; }

.seedbadge {
  position: absolute; top: 7px; right: 22px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--amber); color: #fff; padding: 2px 5px; border-radius: 3px;
}

/* ---------- filter bar ---------- */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px;
}
.filters select, .filters input[type="search"] {
  font: inherit; font-size: 13.5px; color: var(--ink);
  padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); min-width: 0;
}
.filters input[type="search"] { flex: 1 1 160px; }
.toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 550; color: var(--muted);
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 20px;
  cursor: pointer; user-select: none;
}
.toggle input { display: none; }
.toggle:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.toggle .led { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.count { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px; font-weight: 550;
  padding: 4px 10px; border-radius: 14px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-soft);
}
.chip.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.chip.green { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); border-color: transparent; }

/* ---------- stats strip (indexable) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 14px 16px; }
.stat b { display: block; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- SEO layer overlay ---------- */
[data-seo] { position: relative; }
body.seo-on [data-seo] { outline: 1.5px dashed; outline-offset: 3px; border-radius: 4px; }
body.seo-on [data-seo="index"]   { outline-color: #17a673; }
body.seo-on [data-seo="noindex"] { outline-color: #c8342e; }
body.seo-on [data-seo]::before {
  content: attr(data-seo-label);
  position: absolute; top: -9px; left: 8px; z-index: 5;
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px; color: #fff; white-space: nowrap;
}
body.seo-on [data-seo="index"]::before   { background: #17a673; }
body.seo-on [data-seo="noindex"]::before { background: #c8342e; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; background: var(--surface); }
.ftr-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 13px; color: var(--muted); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 16px; }
.ftr a { color: var(--muted); }

/* ---------- misc ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 24%, transparent);
  font-size: 13.5px; color: var(--ink);
}
.notice.warn { background: color-mix(in srgb, var(--amber) 12%, transparent); border-color: color-mix(in srgb, var(--amber) 32%, transparent); }
.notice svg { flex: none; margin-top: 2px; }
.notice b { color: var(--navy); }

.vf { color: var(--blue); }
.hr { height: 1px; background: var(--line); border: 0; margin: 22px 0; }
.kv { display: grid; grid-template-columns: 116px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }

.crumbs { font-size: 12.5px; color: var(--faint); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
