:root {
  --red: #c0392b;
  --red-light: #fadbd8;
  --red-mid: #e74c3c;
  --left: #e74c3c;
  --left-bg: #fdedec;
  --left-border: #f1948a;
  --far-left: #922b21;
  --far-left-bg: #f9ebea;
  --far-left-border: #cd6155;
  --right: #2e86c1;
  --right-bg: #eaf4fb;
  --right-border: #7fb3d3;
  --far-right: #1a5276;
  --far-right-bg: #eaf2f8;
  --far-right-border: #5499c7;
  --center: #ffe19e;
  --center-bg: #ae9e78;
  --center-border: #c9b98a;
  --centrao: #c0392b;
  --centrao-bg: #fdedec;
  --centrao-border: #e8a89d;
  --bg: #f8f6f2;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-hint: #999;
  --border: #e0ddd6;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

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

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  background: #1a1a1a;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
nav {
  display: flex;
  gap: 4px;
}
nav button {
  background: transparent;
  border: none;
  color: #aaa;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
nav button:hover {
  color: #fff;
  background: #545454;
}
nav button.active {
  color: #fff;
  background: #3b3b3b;
}

/* ── HERO ── */
.hero {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 2rem 3.5rem;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero h1 span {
  color: var(--red);
}
.hero p {
  font-size: 1.1rem;
  color: #bbb;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.disclaimer {
  background: #4a4a4a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  color: #b9b9b9;
  max-width: 680px;
  line-height: 1.6;
}
.disclaimer strong {
  color: #ccc;
}

/* ── SPECTRUM BAR ── */
.spectrum-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}
.spectrum-bar {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  height: 52px;
  margin-bottom: 0.5rem;
}
.spec-seg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s;
  border: none;
  gap: 6px;
}
.spec-seg:hover {
  filter: brightness(0.92);
}
.spec-seg.active {
  outline: 2px solid #8a8a8a;
  outline-offset: -2px;
}
.spec-far-left {
  background: var(--far-left);
  color: #fff;
}
.spec-left {
  background: var(--left);
  color: #fff;
}
.spec-center {
  background: var(--center-bg);
  color: #fff;
}
.spec-right {
  background: var(--right);
  color: #fff;
}
.spec-far-right {
  background: var(--far-right);
  color: #fff;
}
.spec-label-row {
  display: flex;
  gap: 0;
}
.spec-label-row span {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-hint);
  padding-top: 4px;
}

/* ── MAIN LAYOUT ── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ── CONTROLS BAR ── */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 1.5rem 0 1rem;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.search-wrap input:focus {
  border-color: #888;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  font-size: 14px;
}
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: #aaa;
  color: var(--text);
}
.filter-btn.active-all {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.filter-btn.active-esq {
  background: var(--left);
  color: #fff;
  border-color: var(--left);
}
.filter-btn.active-esq-rad {
  background: var(--far-left);
  color: #fff;
  border-color: var(--far-left);
}
.filter-btn.active-dir {
  background: var(--right);
  color: #fff;
  border-color: var(--right);
}
.filter-btn.active-ext-dir {
  background: var(--far-right);
  color: #fff;
  border-color: var(--far-right);
}
.filter-btn.active-centro {
  background: var(--center-bg);
  color: #fff;
  border-color: var(--center-border);
}
.select-wrap select {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* ── RESULTS INFO ── */
.results-info {
  font-size: 0.82rem;
  color: var(--text-hint);
  margin-bottom: 1rem;
}
.results-info strong {
  color: var(--text-muted);
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.card.esq::before {
  background: var(--left);
}
.card.esq-rad::before {
  background: var(--far-left);
}
.card.dir::before {
  background: var(--right);
}
.card.ext-dir::before {
  background: var(--far-right);
}
.card.centro::before {
  background: var(--center-bg);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #e8e4dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #4c4848;
  overflow: hidden;
}
.card-name-block {
  flex: 1;
  min-width: 0;
}
.card-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 2px;
}
.card-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.card-party {
  font-size: 0.75rem;
  font-weight: 500;
  background: #f0ede7;
  color: #555;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.orientation-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}
.badge-esq {
  background: var(--left-bg);
  color: var(--left);
  border: 1px solid var(--left-border);
}
.badge-esq-rad {
  background: var(--far-left-bg);
  color: var(--far-left);
  border: 1px solid var(--far-left-border);
}
.badge-dir {
  background: var(--right-bg);
  color: var(--right);
  border: 1px solid var(--right-border);
}
.badge-ext-dir {
  background: var(--far-right-bg);
  color: var(--far-right);
  border: 1px solid var(--far-right-border);
}
.badge-centro {
  background: var(--center-bg);
  color: var(--center);
  border: 1px solid var(--center-border);
}
.badge-behavior-centrao {
  background: var(--centrao-bg);
  color: var(--centrao);
  border: 1px solid var(--centrao-border);
  font-size: 0.7rem;
}
.badge-behavior-fisiologista {
  background: #fef9ec;
  color: #9f670c;
  border: 1px solid #f0c060;
  font-size: 0.7rem;
}

.card-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.tag {
  font-size: 0.7rem;
  background: #f0ede7;
  color: #666;
  padding: 2px 8px;
  border-radius: 20px;
}

.recommend-label {
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.recommend-yes {
  color: #27ae60;
}
.recommend-no {
  color: #aaa;
}
.recommend-warn {
  color: #e67e22;
}

/* ── VOTE BOX (bottom of card) ── */
.vote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.vote-score {
  font-size: 0.78rem;
  color: var(--text-hint);
}
.vote-btn {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: all 0.15s;
  color: var(--text-muted);
}
.vote-btn:hover {
  background: #f5f2ec;
}

/* ── EMPTY STATE ── */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-hint);
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ── LEGEND ── */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 1.2rem 0 0;
  margin-bottom: 0.5rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── GUIDE SECTION ── */
.guide-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
}
.guide-section h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.guide-card {
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.85rem;
}
.guide-card h3 {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.guide-card p {
  color: var(--text-muted);
  line-height: 1.5;
}
.gc-left {
  background: var(--left-bg);
  border: 1px solid var(--left-border);
}
.gc-fleft {
  background: var(--far-left-bg);
  border: 1px solid var(--far-left-border);
}
.gc-right {
  background: var(--right-bg);
  border: 1px solid var(--right-border);
}
.gc-fright {
  background: var(--far-right-bg);
  border: 1px solid var(--far-right-border);
}
.gc-left h3 {
  color: var(--left);
}
.gc-fleft h3 {
  color: var(--far-left);
}
.gc-right h3 {
  color: var(--right);
}
.gc-fright h3 {
  color: var(--far-right);
}

/* ── CONTRIBUTE / FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-hint);
}
footer a {
  color: var(--red);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header {
    padding: 0 1rem;
  }
  .header-inner {
    flex-wrap: wrap;
    height: 100px;
    gap: 0;
  }
  .hero {
    padding: 2.5rem 1rem 2rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  section {
    padding: 0 1rem 3rem;
  }
  .spectrum-section {
    padding: 1.5rem 1rem 0;
  }
  nav button {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  .logo {
    font-size: 1rem;
  }
}
