/* ==========================================================================
   r-Omenia.ro — Results (lista de rezultate + stări: loading/error/empty)
   ========================================================================== */

.results-meta {
  margin: 26px 0 12px;
  padding: 0 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.results-list {
  display: flex;
  flex-direction: column;
}

/* --- Rezultat: listă simplă, doar separator top --- */
.result-item {
  padding: 18px 8px;
  border-top: 1px solid var(--border);
  min-width: 0;
  overflow-wrap: break-word;
}

.result-item:first-child {
  border-top: none;
  padding-top: 8px;
}

.result-domain {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.result-title {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
}

.result-title a {
  color: var(--accent);
  transition: color var(--transition);
  word-break: break-word;
}

.result-title a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-title a:visited {
  color: #8b7ec4;
}

.result-description {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-muted);
  word-break: break-word;
}

@media (max-width: 560px) {
  .result-item {
    padding: 14px 4px;
  }

  .result-title {
    font-size: 1.05rem;
  }
}

/* --- Stări --- */
.state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.state-card.error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #f3c1c1;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
