/* Card de resultado pra keyword custom — borda --bee tracejada sutil.
   O ícone 🔎 já vem do meta.icon, não precisa pseudo-element. */
.result-card.result-keyword {
  border-style: dashed;
  border-color: rgba(242,200,75,0.35);
}
.result-card.result-keyword::before {
  background: linear-gradient(90deg, transparent, rgba(242,200,75,0.5), transparent);
}
.result-card.result-keyword .card-cat span:not(.ico) {
  font-style: italic;
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: rgba(5,12,22,0.45);
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--transition);
  user-select: none;
  position: relative;
}
.chip:hover {
  border-color: rgba(201,150,62,0.4);
  background: rgba(20,36,54,0.7);
}
.chip.active {
  background: linear-gradient(135deg, rgba(201,150,62,0.18) 0%, rgba(201,150,62,0.06) 100%);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,150,62,0.25) inset;
}
.chip .check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(245,240,232,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 0.7rem;
  color: var(--navy-900);
  font-weight: 700;
}
.chip.active .check {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-color: var(--gold);
}
.chip.active .check::before { content: '✓'; }
.chip .icon { font-size: 1.15rem; }
.chip-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.chip-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--off-white);
}
.chip-desc {
  font-size: 0.76rem;
  color: var(--off-white-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-footer {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--off-white-dim);
  padding-top: 1rem;
  border-top: 1px solid rgba(245,240,232,0.06);
}
.category-counter strong { color: var(--gold-bright); font-family: var(--font-mono); }
.min-hint.warning { color: var(--warning); }

/* Loading */
.loading-section {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
}
.loading-section.active { display: block; animation: fadeIn 0.4s ease-out; }
.loader-orbit {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.loader-orbit::before, .loader-orbit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.loader-orbit::before {
  border-top-color: var(--gold);
  border-right-color: var(--gold);
  animation: spin 1.2s linear infinite;
}
.loader-orbit::after {
  inset: 12px;
  border-bottom-color: var(--gold-bright);
  border-left-color: var(--gold-bright);
  animation: spin 0.9s linear reverse infinite;
}
.loading-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--off-white);
  margin-bottom: 0.5rem;
  min-height: 1.5em;
  transition: opacity 0.3s;
}
.loading-sub {
  font-size: 0.88rem;
  color: var(--off-white-dim);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.skeleton-card {
  background: linear-gradient(135deg, rgba(20,36,54,0.5) 0%, rgba(13,27,42,0.4) 100%);
  border: 1px solid rgba(245,240,232,0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 220px;
  position: relative;
  overflow: hidden;
}
.skeleton-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245,240,232,0.04), transparent);
  animation: shimmer 1.8s ease-in-out infinite;
}
.skeleton-bar {
  background: rgba(245,240,232,0.06);
  border-radius: 4px;
  margin-bottom: 0.85rem;
}
.skeleton-bar.lg { height: 14px; width: 60%; }
.skeleton-bar.md { height: 10px; width: 80%; }
.skeleton-bar.sm { height: 10px; width: 45%; }
.skeleton-bar.score { height: 10px; width: 100%; margin-top: 1rem; }

/* Results */
.results-section {
  display: none;
}
.results-section.active { display: block; }
/* ── Banner de tradução em curso ─────────────────────────────────────── */
.translate-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin-bottom: 1rem;
  background: rgba(229,182,90,0.1);
  border: 1px solid rgba(229,182,90,0.28);
  border-radius: 10px;
  font-size: 13px;
  color: var(--gold);
  animation: fadeIn 0.2s ease;
}
.translate-banner[hidden] { display: none; }
.translate-banner .tb-spinner {
  width: 14px; height: 14px; flex-shrink: 0;
  border: 2px solid rgba(229,182,90,0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
[data-theme="light"] .translate-banner {
  background: rgba(184,136,0,0.08);
  border-color: rgba(184,136,0,0.3);
  color: var(--gold);
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201,150,62,0.18);
}
.results-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.results-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bee);
  font-weight: 600;
}
.results-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.results-overall {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.overall-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--pct), rgba(245,240,232,0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.overall-badge::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--navy-800);
  border-radius: 50%;
}
.overall-badge .num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.overall-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--off-white-dim);
}
.overall-meta strong { color: var(--off-white); font-family: var(--font-display); font-size: 1.1rem; }

.results-photo {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  background: var(--navy-700);
  animation: fadeUp 0.5s var(--transition) both;
}
.results-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}
.results-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(5,12,22,0.45) 100%);
  pointer-events: none;
  z-index: 2;
}
[data-theme="light"] .results-photo-overlay {
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.2) 100%);
}
.results-photo { border-radius: 12px; }
.results-photo-overlay {
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.25) 100%);
}
@media (max-width: 600px) {
  .results-photo { height: 180px; }
}

