// Styles partagés via styles/_view.scss

// === Vue Hub ===
.hub-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;

  .view-section-title { margin: 0; }
}

.hub-quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.hub-quest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--color-border, #e2e2e2);
  border-radius: 10px;
  background: var(--color-surface, #fff);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  min-height: 110px;

  &:hover {
    border-color: var(--color-primary, #2c6cd6);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  }

  &.locked {
    opacity: 0.7;
    background: rgba(128, 128, 128, 0.04);
    border-style: dashed;

    &:hover {
      // Pas d'illusion d'interactivité pour les quêtes verrouillées
      transform: none;
      border-color: var(--color-border, #e2e2e2);
      box-shadow: none;
    }
  }
}

.hub-quest-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hub-quest-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #2c6cd6);
}

.hub-quest-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.hub-quest-card-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted, #666);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-quest-card-footer {
  margin-top: auto;
}

.hub-quest-card-locked-hint {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(128, 128, 128, 0.25);
  font-size: 0.72rem;
  color: var(--color-text-muted, #777);

  > lucide-icon,
  > span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
}

.hub-quest-card-prereq-list {
  list-style: disc;
  padding-left: 1rem;
  margin: 0.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
