/**
 * ==================================================
 * ⭐ PREFERITI — Home personale utente (BASE)
 * ==================================================
 * Stile MINIMAL provvisorio.
 * Serve solo a rendere la pagina ordinata e leggibile.
 * Lo rifiniremo prima della pubblicazione.
 * ==================================================
 */

/* ===== Struttura sezioni ===== */

.vs-pref-section {
  margin: 28px 0 36px;
}

.vs-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vs-pref-head h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* ===== Griglia ===== */

.vs-pref-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* ===== Card ===== */

.vs-pref-card {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;

  text-decoration: none;
  color: inherit;

  transition: background 0.15s ease, border-color 0.15s ease;
}

.vs-pref-card:hover {
  background: #fafafa;
  border-color: #d1d5db;
}

/* ===== Thumbnail ===== */

.vs-pref-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;

  border-radius: 12px;
  background: #f1f5f9;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vs-pref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== Testi ===== */

.vs-pref-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.vs-pref-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

/* ===== Pill rubrica (magazine) ===== */

.vs-pref-pill {
  display: inline-block;
  margin-bottom: 4px;

  font-size: 11px;
  font-weight: 500;

  padding: 3px 8px;
  border-radius: 999px;

  background: #eef2ff;
  color: #3730a3;
}

/* ===== Empty state ===== */

.vs-pref-empty {
  display: none;
  padding: 12px 4px;

  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.vs-pref-empty.is-show {
  display: block;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .vs-pref-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .vs-pref-card {
    grid-column: span 12;
  }
}

.vs-pref-reason{
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}