/* Card de enquetes na home — dark mode (paleta global do site).
   2 enquetes aleatórias das top 30 mais votadas. */

.home-enquetes {
  padding: 32px 0 12px;
}
.home-enquetes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.home-enquetes-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.home-enquetes-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.home-enquetes-empty,
.home-enquetes-loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
}
.home-enquetes-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-enquetes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.he-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.he-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--primary-light);
}

.he-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.he-card-ticker-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.he-card-ticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-color);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.he-card-ticker:hover {
  background: var(--primary-dark);
  border-color: var(--primary-light);
  color: #fff;
}
.he-card-cotistas {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.he-card-cotistas strong {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.he-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.he-card-q {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.he-card-desc {
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.he-card-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.he-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.he-opt:disabled {
  cursor: default;
  pointer-events: none;
}
.he-opt:hover:not(:disabled) {
  border-color: var(--primary-light);
  background: rgba(45, 138, 110, 0.12);
}
.he-opt[data-voted="true"] {
  border-color: var(--primary-light);
  background: rgba(45, 138, 110, 0.20);
}
.he-opt-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(45, 138, 110, 0.22),
    rgba(45, 138, 110, 0.45)
  );
  z-index: 0;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 8px 0 0 8px;
}
.he-opt[data-voted="true"] .he-opt-bar {
  background: linear-gradient(
    90deg,
    rgba(63, 185, 80, 0.30),
    rgba(63, 185, 80, 0.50)
  );
}
.he-opt-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.he-opt-pct {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.he-card[data-voted="true"] .he-opt-pct {
  opacity: 1;
}

.he-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.he-card-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}
.he-card-link:hover {
  text-decoration: underline;
  color: #4cb38a;
}
.he-card-thanks {
  color: var(--bullish);
  font-weight: 600;
}
